diff --git a/agkyra/syncer/syncer.py b/agkyra/syncer/syncer.py index c1a2e3f2ae82525c5031e9861e22a478f60a64ac..12d2f22fc4ff4312246ed568bd1abf106a32258d 100644 --- a/agkyra/syncer/syncer.py +++ b/agkyra/syncer/syncer.py @@ -75,7 +75,13 @@ class FileSyncer(object): def stop_notifiers(self): for notifier in self.notifiers.values(): - notifier.stop() + try: + notifier.stop() + except KeyError as e: + # bypass watchdog inotify bug that causes a KeyError + # when attempting to stop a notifier after the watched + # directory has been deleted + logger.warning("Ignored KeyError: %s" % e) def start_decide(self): if not self.decide_active: