This commit is contained in:
Georg Brandl 2006-05-29 14:13:21 +00:00
parent bda0744d55
commit a1121fa935
1 changed files with 2 additions and 1 deletions

View File

@ -728,7 +728,8 @@ PyErr_SyntaxLocation(const char *filename, int lineno)
tmp = PyErr_ProgramText(filename, lineno);
if (tmp) {
PyObject_SetAttrString(v, "text", tmp);
if (PyObject_SetAttrString(v, "text", tmp))
PyErr_Clear();
Py_DECREF(tmp);
}
}