Skip to content
Snippets Groups Projects
Commit 5cc562b5 authored by Diana Huang's avatar Diana Huang
Browse files

Use six to reraise a capa error.

parent 01b6b19f
No related merge requests found
......@@ -897,7 +897,7 @@ class LoncapaProblem(object):
except Exception as err:
log.exception("Error while execing script code: " + all_code)
msg = Text("Error while executing script code: %s" % str(err))
raise responsetypes.LoncapaProblemError(msg)
six.reraise(responsetypes.LoncapaProblemError, responsetypes.LoncapaProblemError(msg))
# Store code source in context, along with the Python path needed to run it correctly.
context['script_code'] = all_code
......
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