8000 Add traceback information to exception by testrunner123 · Pull Request #545 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Add traceback information to exception #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 14, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add traceback information to exception
  • Loading branch information
testrunner123 authored and filmor committed Nov 14, 2018
commit f90f47b4084a651d58a75322d720a7627013212f
2 changes: 1 addition & 1 deletion src/runtime/exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public static void SetError(Exception e)
var pe = e as PythonException;
if (pe != null)
{
Runtime.PyErr_SetObject(pe.PyType, pe.PyValue);
Runtime.PyErr_Restore(pe.PyType, pe.PyValue, pe.PyTB);
return;
}

Expand Down
0