cron: fix exception handling around jobs

This commit is contained in:
Benjamin Dauvergne 2012-08-29 16:23:22 +02:00
parent 31fd030a75
commit e6f455ca93
1 changed files with 1 additions and 1 deletions

View File

@ -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)