diff Modules/threadmodule.c @ 7211:c764217ae6eb legacy-trunk

Don't store the exception info from an unhandled exception in a thread in sys.last_*; it prevents proper calling of destructors of local variables.
author Guido van Rossum <guido@python.org>
date Fri, 06 Feb 1998 22:32:08 +0000
parents 2c29b8982643
children 7cdff8aa8318
line wrap: on
line diff
--- a/Modules/threadmodule.c	Fri Feb 06 22:30:29 1998 +0000
+++ b/Modules/threadmodule.c	Fri Feb 06 22:32:08 1998 +0000
@@ -219,7 +219,7 @@
 			PyErr_Clear();
 		else {
 			fprintf(stderr, "Unhandled exception in thread:\n");
-			PyErr_Print();
+			PyErr_PrintEx(0);
 		}
 	}
 	else