mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
919b83d522
commit
40769dd073
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ t_bootstrap(boot_raw)
|
|||
PyErr_Clear();
|
||||
else {
|
||||
fprintf(stderr, "Unhandled exception in thread:\n");
|
||||
PyErr_Print();
|
||||
PyErr_PrintEx(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue