mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)
... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
This commit is contained in:
parent
90759a2a77
commit
1188935af9
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ Py_NewInterpreter(void)
|
|||
handle_error:
|
||||
/* Oops, it didn't work. Undo it all. */
|
||||
|
||||
PyErr_Print();
|
||||
PyErr_PrintEx(0);
|
||||
PyThreadState_Clear(tstate);
|
||||
PyThreadState_Swap(save_tstate);
|
||||
PyThreadState_Delete(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue