hgext/inotify/__init__.py
changeset 7329 fd4bf5269733
parent 7304 68374f1c8c87
child 7393 92c952c4470c
--- a/hgext/inotify/__init__.py	Fri Nov 07 13:02:03 2008 +0100
+++ b/hgext/inotify/__init__.py	Fri Nov 07 13:02:04 2008 +0100
@@ -80,13 +80,14 @@
                     query = None
                     ui.debug(_('(starting inotify server)\n'))
                     try:
-                        server.start(ui, repo)
-                        query = client.query
-                    except server.AlreadyStartedException, inst:
-                        # another process may have started its own
-                        # inotify server while this one was starting.
-                        ui.debug(str(inst))
-                        query = client.query
+                        try:
+                            server.start(ui, repo)
+                            query = client.query
+                        except server.AlreadyStartedException, inst:
+                            # another process may have started its own
+                            # inotify server while this one was starting.
+                            ui.debug(str(inst))
+                            query = client.query
                     except Exception, inst:
                         ui.warn(_('could not start inotify server: '
                                        '%s\n') % inst)