summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/traceback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index bbe6f2e..c2aba52 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -322,6 +322,7 @@ _Py_DisplaySourceLine(PyObject *f, PyObject *filename, int lineno, int indent)
Py_XDECREF(lineobj);
lineobj = PyFile_GetLine(fob, -1);
if (!lineobj) {
+ PyErr_Clear();
err = -1;
break;
}