mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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();
|
PyErr_Clear();
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "Unhandled exception in thread:\n");
|
fprintf(stderr, "Unhandled exception in thread:\n");
|
||||||
PyErr_Print();
|
PyErr_PrintEx(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue