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