Fix optional watchdog handling.

Broken with 4086dd61da.

Thanks for bug report from @nsoranzo.
This commit is contained in:
John Chilton
2016-01-08 11:45:42 +00:00
parent 5d32c9f8fc
commit 7a3cc41054
+1
View File
@@ -9,6 +9,7 @@ try:
from watchdog.observers.polling import PollingObserver
can_watch = True
except ImportError:
Observer = None
FileSystemEventHandler = object
PollingObserver = object
can_watch = False