FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add traceback information to exception · ra2003/pythonnet@f90f47b · GitHub

Repository navigation

Commit f90f47b

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL