Commit 31d4ae1b authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Improve traceback of errors

parent 302658fc
......@@ -1394,6 +1394,9 @@ class JobManager:
self._set_analytics_job_status("fail-map")
except Exception as e:
traceback.print_exc()
with open(self.logs, 'a') as f:
f.write(str(e))
f.write(traceback.format_exc())
self.set_job_status("fail", "Your job has failed for an unexpected reason. Please contact the support if"
"the problem persists.")
if MODE == "webserver":
......
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