Commit 5ef4b1f0 authored by Stian Andreassen's avatar Stian Andreassen
Browse files

Fix issue #3120, do restore traceback in PyErr_Restore.

parent dcc4efe7355e
......@@ -88,7 +88,7 @@ def PyErr_Restore(space, py_type, py_value, py_traceback):
if w_type is None:
state.clear_exception()
return
state.set_exception(OperationError(w_type, w_value))
state.set_exception(OperationError(w_type, w_value, w_traceback))
@cpython_api([PyObjectP, PyObjectP, PyObjectP], lltype.Void)
def PyErr_NormalizeException(space, exc_p, val_p, tb_p):
......
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