mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Merged revisions 76573 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76573 | antoine.pitrou | 2009-11-28 17:12:28 +0100 (sam., 28 nov. 2009) | 3 lines Issue #4486: When an exception has an explicit cause, do not print its implicit context too. ........
This commit is contained in:
parent
875ada4b0f
commit
bcc63a86a9
4 changed files with 30 additions and 5 deletions
|
@ -1576,7 +1576,7 @@ print_exception_recursive(PyObject *f, PyObject *value, PyObject *seen)
|
|||
cause_message, f);
|
||||
}
|
||||
}
|
||||
if (context) {
|
||||
else if (context) {
|
||||
res = PySet_Contains(seen, context);
|
||||
if (res == -1)
|
||||
PyErr_Clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue