equal
deleted
inserted
replaced
19 Decorator. |
19 Decorator. |
20 Tries to call function, if it fails, try to (re)start inotify server. |
20 Tries to call function, if it fails, try to (re)start inotify server. |
21 Raise QueryFailed if something went wrong |
21 Raise QueryFailed if something went wrong |
22 """ |
22 """ |
23 def decorated_function(self, *args): |
23 def decorated_function(self, *args): |
24 result = None |
|
25 try: |
24 try: |
26 return function(self, *args) |
25 return function(self, *args) |
27 except (OSError, socket.error), err: |
26 except (OSError, socket.error), err: |
28 autostart = self.ui.configbool('inotify', 'autostart', True) |
27 autostart = self.ui.configbool('inotify', 'autostart', True) |
29 |
28 |