mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
This commit is contained in:
parent
3ebe3d7688
commit
95504f429e
25 changed files with 79 additions and 59 deletions
|
@ -784,7 +784,8 @@ _PyXI_excinfo_Apply(_PyXI_excinfo *info, PyObject *exctype)
|
|||
PyObject *exc = PyErr_GetRaisedException();
|
||||
if (PyObject_SetAttrString(exc, "_errdisplay", tbexc) < 0) {
|
||||
#ifdef Py_DEBUG
|
||||
PyErr_FormatUnraisable("Exception ignored when setting _errdisplay");
|
||||
PyErr_FormatUnraisable("Exception ignored while "
|
||||
"setting _errdisplay");
|
||||
#endif
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue