Commit 63e332e9 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Handle error when stoping watchdog on osx

parent 4de8a28a
...@@ -84,6 +84,11 @@ class FileSyncer(object): ...@@ -84,6 +84,11 @@ class FileSyncer(object):
# when attempting to stop a notifier after the watched # when attempting to stop a notifier after the watched
# directory has been deleted # directory has been deleted
logger.warning("Ignored KeyError: %s" % e) logger.warning("Ignored KeyError: %s" % e)
except TypeError as e:
# bypass watchdog osx bug that causes a TypeError
# when attempting to stop a notifier after the watched
# directory has been deleted
logger.warning("Ignored TypeError: %s" % e)
for notifier in self.notifiers.values(): for notifier in self.notifiers.values():
notifier.join() notifier.join()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment