cron: fix exception handling around jobs
This commit is contained in:
parent
31fd030a75
commit
e6f455ca93
|
@ -82,7 +82,7 @@ def cron(publisher):
|
|||
try:
|
||||
job.function(publisher)
|
||||
except:
|
||||
get_publisher().notify_of_exception(sys.exc_info(), context='[CRON]')
|
||||
publisher.notify_of_exception(sys.exc_info(), context='[CRON]')
|
||||
time.sleep(10)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue