Use a more typical optional default value for optional import in watcher.py.

Thanks to @nsoranzo for the advice - https://github.com/galaxyproject/galaxy/pull/1448#discussion_r49210125.
This commit is contained in:
John Chilton
2016-01-08 12:00:50 +00:00
parent 7a3cc41054
commit e611b8fdb8
+1 -1
View File
@@ -11,7 +11,7 @@ try:
except ImportError:
Observer = None
FileSystemEventHandler = object
PollingObserver = object
PollingObserver = None
can_watch = False
log = logging.getLogger( __name__ )