mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-129354: Use PyErr_FormatUnraisable() function (#129435)
Replace PyErr_WriteUnraisable() with PyErr_FormatUnraisable().
This commit is contained in:
parent
5ab9604683
commit
4e47e05045
9 changed files with 21 additions and 15 deletions
|
@ -1837,7 +1837,8 @@ _PyErr_CheckSignalsTstate(PyThreadState *tstate)
|
|||
PyErr_Format(PyExc_OSError,
|
||||
"Signal %i ignored due to race condition",
|
||||
i);
|
||||
PyErr_WriteUnraisable(Py_None);
|
||||
PyErr_FormatUnraisable("Exception ignored when "
|
||||
"calling signal handler");
|
||||
continue;
|
||||
}
|
||||
PyObject *arglist = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue