commit | 40769dd073bdc9c3ceb8082bd080158772e715ec | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Feb 06 22:32:08 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Feb 06 22:32:08 1998 +0000 |
tree | 3ee7ba37d17dc94f1d40577bf79a7fcaf78283d0 | |
parent | 919b83d5221cf85585ab99347e427f384e0083c8 [diff] |
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.
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 @@ PyErr_Clear(); else { fprintf(stderr, "Unhandled exception in thread:\n"); - PyErr_Print(); + PyErr_PrintEx(0); } } else