diff Python/pythonrun.c @ 57498:4bed796ee0d7 3.1

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. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 28 Nov 2009 16:16:09 +0000
parents 29b3e126c0c2
children c2d2e26bcf7f 9b5806a008e7
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Nov 28 12:52:39 2009 +0000
+++ b/Python/pythonrun.c	Sat Nov 28 16:16:09 2009 +0000
@@ -1576,7 +1576,7 @@
 						cause_message, f);
 				}
 			}
-			if (context) {
+			else if (context) {
 				res = PySet_Contains(seen, context);
 				if (res == -1)
 					PyErr_Clear();