Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f90f47b

Browse files
testrunner123filmor
authored andcommitted
Add traceback information to exception
1 parent 88d61a9 commit f90f47b

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
@@ -256,7 +256,7 @@ public static void SetError(Exception e)
256256
var pe = e as PythonException;
257257
if (pe != null)
258258
{
259-
Runtime.PyErr_SetObject(pe.PyType, pe.PyValue);
259+
Runtime.PyErr_Restore(pe.PyType, pe.PyValue, pe.PyTB);
260260
return;
261261
}
262262

0 commit comments

Comments
 (0)