forked from rc/aircox
handling error
This commit is contained in:
parent
7499a21575
commit
a4b7daa373
|
@ -131,7 +131,10 @@ class Command (BaseCommand):
|
|||
delay = options.get('delay') / 1000
|
||||
while True:
|
||||
for controller in self.monitor.controllers.values():
|
||||
controller.monitor()
|
||||
try:
|
||||
controller.monitor()
|
||||
except Exception as err:
|
||||
print(err)
|
||||
time.sleep(delay)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user