Skip to content

Commit 302f729

Browse files
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent a5d081d commit 302f729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_ctypes/callbacks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void _CallPythonObject(ctypes_state *st,
190190
error_object = _ctypes_get_errobj(st, &space);
191191
if (error_object == NULL) {
192192
PyErr_FormatUnraisable(
193-
"Exception ignored on setting error for "
193+
"Exception ignored while setting error for "
194194
"ctypes callback function %R",
195195
callable);
196196
goto Done;
@@ -285,7 +285,7 @@ static void _CallPythonObject(ctypes_state *st,
285285

286286
Error:
287287
PyErr_FormatUnraisable(
288-
"Exception ignored on creating argument %zd for "
288+
"Exception ignored while creating argument %zd for "
289289
"ctypes callback function %R",
290290
i, callable);
291291
goto Done;

0 commit comments

Comments
 (0)