]> granicus.if.org Git - python/commitdiff
Don't store the exception info from an unhandled exception in a thread
authorGuido van Rossum <guido@python.org>
Fri, 6 Feb 1998 22:32:08 +0000 (22:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Feb 1998 22:32:08 +0000 (22:32 +0000)
in sys.last_*; it prevents proper calling of destructors of local
variables.

Modules/threadmodule.c

index 214263fc439603c6603e5329e7fccefc2b4d4471..51c24d13f5168e0ffada5eeeb700cd87ec984d08 100644 (file)
@@ -219,7 +219,7 @@ t_bootstrap(boot_raw)
                        PyErr_Clear();
                else {
                        fprintf(stderr, "Unhandled exception in thread:\n");
-                       PyErr_Print();
+                       PyErr_PrintEx(0);
                }
        }
        else