Skip to content

Commit ec725d8

Browse files
testrunner123manako-t
authored andcommitted
Add traceback information to exception
1 parent d1ebbd1 commit ec725d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/exceptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public static void SetError(Exception e)
269269
PythonException pe = e as PythonException;
270270
if (pe != null)
271271
{
272-
Runtime.PyErr_SetObject(pe.PyType, pe.PyValue);
272+
Runtime.PyErr_Restore(pe.PyType, pe.PyValue, pe.PyTB);
273273
return;
274274
}
275275

0 commit comments

Comments
 (0)