Skip to content
Snippets Groups Projects
Commit 71530f9c authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

improve exception handling

parent d3523dfa
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class WfBrainscales2Demos(Package):
try:
# execute notebook and save
jupyter(*args)
except Exception as e:
except ProcessError as e:
# if the above fails, re-run notebook to produce output with error
jupyter(*(args+["--allow-errors"]))
raise
......
......@@ -47,7 +47,7 @@ class WfMultiAreaModel(Package):
try:
# execute notebook and save
jupyter(*args)
except Exception as e:
except ProcessError as e:
# if the above fails, re-run notebook to produce output with error
jupyter(*(args+["--allow-errors"]))
raise
......
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