Kaydet (Commit) 40769dd0 authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst 919b83d5
...@@ -219,7 +219,7 @@ t_bootstrap(boot_raw) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment