Mercurial > cpython-lru_cache-weakref
diff Python/errors.c @ 38479:5531955993ed legacy-trunk
Fix #1494605.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Mon, 29 May 2006 14:13:21 +0000 |
| parents | 1a23706139ca |
| children | 7dc5f3ede4cd |
line wrap: on
line diff
--- a/Python/errors.c Mon May 29 13:53:16 2006 +0000 +++ b/Python/errors.c Mon May 29 14:13:21 2006 +0000 @@ -728,7 +728,8 @@ tmp = PyErr_ProgramText(filename, lineno); if (tmp) { - PyObject_SetAttrString(v, "text", tmp); + if (PyObject_SetAttrString(v, "text", tmp)) + PyErr_Clear(); Py_DECREF(tmp); } }
