summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-06 22:32:08 (GMT)
committerGuido van Rossum <guido@python.org>1998-02-06 22:32:08 (GMT)
commit40769dd073bdc9c3ceb8082bd080158772e715ec (patch)
tree3ee7ba37d17dc94f1d40577bf79a7fcaf78283d0 /Modules/threadmodule.c
parent919b83d5221cf85585ab99347e427f384e0083c8 (diff)
downloadcpython-40769dd073bdc9c3ceb8082bd080158772e715ec.zip
cpython-40769dd073bdc9c3ceb8082bd080158772e715ec.tar.gz
cpython-40769dd073bdc9c3ceb8082bd080158772e715ec.tar.bz2
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.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c2
1 files changed, 1 insertions, 1 deletions
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