Skip to content
Snippets Groups Projects
Commit 2ec83f18 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[experiments][models][experiment] Fix exception declaration in except block

parent f9198e02
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
...@@ -196,8 +196,8 @@ class ExperimentManager(ContributionManager): ...@@ -196,8 +196,8 @@ class ExperimentManager(ContributionManager):
# Save the experiment (will run the validation) # Save the experiment (will run the validation)
try: try:
experiment.save() experiment.save()
except SyntaxError, e: except SyntaxError as e:
return (None, None, e.message) return (None, None, str(e))
except Exception: except Exception:
import traceback import traceback
return (None, None, traceback.format_exc()) return (None, None, traceback.format_exc())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment