commit | a1121fa9350f16bbae18b66b8c3825fd5e4706f6 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon May 29 14:13:21 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Mon May 29 14:13:21 2006 +0000 |
tree | aa620532288c4081a5a069ab0cbb0234fa7af246 | |
parent | bda0744d558707acaf33892cf0656c06477d64f5 [diff] |
Fix #1494605.
diff --git a/Python/errors.c b/Python/errors.c index a40f073..56463a3 100644 --- a/Python/errors.c +++ b/Python/errors.c
@@ -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); } }