handling error

This commit is contained in:
bkfox 2015-12-12 17:21:11 +01:00
parent 7499a21575
commit a4b7daa373

View File

@ -131,7 +131,10 @@ class Command (BaseCommand):
delay = options.get('delay') / 1000
while True:
for controller in self.monitor.controllers.values():
try:
controller.monitor()
except Exception as err:
print(err)
time.sleep(delay)
return