summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-01-31 08:45:35 (GMT)
committerGitHub <noreply@github.com>2025-01-31 08:45:35 (GMT)
commit95504f429eec04010d0b815345ebcc3af2402af0 (patch)
treeff42a5c906cab4c4b6b22e1580893fd2d1114485 /Python/errors.c
parent3ebe3d7688475e98a34d691e1ba50d8b7178a575 (diff)
downloadcpython-95504f429eec04010d0b815345ebcc3af2402af0.zip
cpython-95504f429eec04010d0b815345ebcc3af2402af0.tar.gz
cpython-95504f429eec04010d0b815345ebcc3af2402af0.tar.bz2
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 9c7b771..0a19d89 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -1633,7 +1633,7 @@ format_unraisable_v(const char *format, va_list va, PyObject *obj)
PyObject *hook_args = make_unraisable_hook_args(
tstate, exc_type, exc_value, exc_tb, err_msg, obj);
if (hook_args == NULL) {
- err_msg_str = ("Exception ignored on building "
+ err_msg_str = ("Exception ignored while building "
"sys.unraisablehook arguments");
goto error;
}