From 40769dd073bdc9c3ceb8082bd080158772e715ec Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Feb 1998 22:32:08 +0000 Subject: 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. --- Modules/threadmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 214263f..51c24d1 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -219,7 +219,7 @@ t_bootstrap(boot_raw) PyErr_Clear(); else { fprintf(stderr, "Unhandled exception in thread:\n"); - PyErr_Print(); + PyErr_PrintEx(0); } } else -- cgit v0.12