Commit ad0accdd authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 48cf40da
......@@ -180,12 +180,18 @@ class Workflow(threading.Thread):
try:
self.process()
except SystemExit, e:
self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize()
raise RuntimeError('An error occurred when executing workflow: {0}'.format(e))
self.component_nameids_is_init = True
self._serialize()
try:
self.process()
except SystemExit, e:
self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize()
raise RuntimeError('An error occurred when executing workflow: {0}'.format(e))
if len(self.components) > 0:
self._execute_weaver()
......@@ -344,6 +350,7 @@ class Workflow(threading.Thread):
nest.compile()
except Exception as e:
self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize()
raise SyntaxError('An error occurred when compiling script: {0}'.format(e))
self.components = []
......
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