--- 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)