changeset 6995:25619b72f86a

inotify: fix traceback when the server has been already started
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 06 Sep 2008 12:48:52 +0200
parents bf727bab38b9
children fecf060f32a1
files hgext/inotify/__init__.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/inotify/__init__.py	Tue Aug 19 15:36:03 2008 -0700
+++ b/hgext/inotify/__init__.py	Sat Sep 06 12:48:52 2008 +0200
@@ -24,7 +24,10 @@
 
     class service:
         def init(self):
-            self.master = server.Master(ui, repo, timeout)
+            try:
+                self.master = server.Master(ui, repo, timeout)
+            except server.AlreadyStartedException, inst:
+                raise util.Abort(str(inst))
 
         def run(self):
             try: