We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec725d8 commit a8e3d96Copy full SHA for a8e3d96
src/runtime/exceptions.cs
@@ -269,6 +269,9 @@ public static void SetError(Exception e)
269
PythonException pe = e as PythonException;
270
if (pe != null)
271
{
272
+ Runtime.XIncref(pe.PyType);
273
+ Runtime.XIncref(pe.PyValue);
274
+ Runtime.XIncref(pe.PyTB);
275
Runtime.PyErr_Restore(pe.PyType, pe.PyValue, pe.PyTB);
276
return;
277
}
0 commit comments