diff options
Diffstat (limited to 'Python/pythonrun.c')
| -rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 4c974ce..b7b77d1 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -932,7 +932,9 @@ PyErr_Display(PyObject *exception, PyObject *value, PyObject *tb) seen = PySet_New(NULL); if (seen == NULL) PyErr_Clear(); + Py_INCREF(f); print_exception_recursive(f, value, seen); + Py_DECREF(f); Py_XDECREF(seen); } } |
