diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-28 16:12:28 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-28 16:12:28 +0000 |
commit | 7b0d4a238f2a69747ed570f8bfb51fb31315eba9 (patch) | |
tree | 0e1ea6c39a6ce48f33b1358992f26d3e5ce1081a /Python/pythonrun.c | |
parent | 1fc0d2b364b144e501615cf82e998beb87733607 (diff) | |
download | cpython-git-7b0d4a238f2a69747ed570f8bfb51fb31315eba9.tar.gz |
Issue #4486: When an exception has an explicit cause, do not print its implicit context too.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 875e44e99b..3764740e81 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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(); |