commit | 7b0d4a238f2a69747ed570f8bfb51fb31315eba9 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Nov 28 16:12:28 2009 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Nov 28 16:12:28 2009 +0000 |
tree | 0e1ea6c39a6ce48f33b1358992f26d3e5ce1081a | |
parent | 1fc0d2b364b144e501615cf82e998beb87733607 [diff] |
Issue #4486: When an exception has an explicit cause, do not print its implicit context too.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 875e44e..3764740 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -1576,7 +1576,7 @@ cause_message, f); } } - if (context) { + else if (context) { res = PySet_Contains(seen, context); if (res == -1) PyErr_Clear();