Commit 8b2a6b46 authored by Daniele Venzano's avatar Daniele Venzano

Catch bugs: here no unexpected exceptions should occur

parent a952291f
......@@ -108,6 +108,11 @@ class ZoeScheduler:
e.set_error_message(ex.message)
terminate_execution(e)
e.set_error()
except Exception as ex:
log.exception('BUG, this error should have been caught earlier')
e.set_error_message(str(ex))
terminate_execution(e)
e.set_error()
else:
e.set_running()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment