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.
This commit is contained in:
Guido van Rossum 1998-02-06 22:32:08 +00:00
parent 919b83d522
commit 40769dd073

View 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