cc-4228: formatting
This commit is contained in:
parent
4a10fb2ecf
commit
10a7eae498
python_apps/media-monitor2/media/monitor
|
@ -10,7 +10,7 @@ from media.monitor.exceptions import BadSongFile
|
|||
class PathChannel(object):
|
||||
def __init__(self, signal, path):
|
||||
self.signal = signal
|
||||
self.path = path
|
||||
self.path = path
|
||||
|
||||
class EventRegistry(object):
|
||||
"""
|
||||
|
|
|
@ -19,9 +19,9 @@ class RequestSync(threading.Thread,Loggable):
|
|||
"""
|
||||
def __init__(self, watcher, requests):
|
||||
threading.Thread.__init__(self)
|
||||
self.watcher = watcher
|
||||
self.requests = requests
|
||||
self.retries = 1
|
||||
self.watcher = watcher
|
||||
self.requests = requests
|
||||
self.retries = 1
|
||||
self.request_wait = 0.3
|
||||
|
||||
@LazyProperty
|
||||
|
@ -124,9 +124,8 @@ class WatchSyncer(ReportHandler,Loggable):
|
|||
try:
|
||||
# If there is a strange bug anywhere in the code the next line
|
||||
# should be a suspect
|
||||
#if self.contractor.register( event ):
|
||||
#self.push_queue( event )
|
||||
self.push_queue( event )
|
||||
if self.contractor.register(event): self.push_queue( event )
|
||||
#self.push_queue( event )
|
||||
except BadSongFile as e:
|
||||
self.fatal_exception("Received bas song file '%s'" % e.path, e)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue