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

[experiments][api] Fix exception declaration in except block

parent c990fa11
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -470,8 +470,8 @@ class RetrieveUpdateDestroyExperimentView(RetrieveUpdateDestroyContributionView)
try:
experiment.save()
except SyntaxError, e:
return BadRequestResponse(e.message)
except SyntaxError as e:
return BadRequestResponse(str(e))
# Create the in-memory representation of the toolchain
core_obj = experiment.core()
......
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