Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
serhiy-storchaka and vstinner authored Jan 31, 2025
1 parent a5d081d commit 302f729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_ctypes/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static void _CallPythonObject(ctypes_state *st,
error_object = _ctypes_get_errobj(st, &space);
if (error_object == NULL) {
PyErr_FormatUnraisable(
"Exception ignored on setting error for "
"Exception ignored while setting error for "
"ctypes callback function %R",
callable);
goto Done;
Expand Down Expand Up @@ -285,7 +285,7 @@ static void _CallPythonObject(ctypes_state *st,

Error:
PyErr_FormatUnraisable(
"Exception ignored on creating argument %zd for "
"Exception ignored while creating argument %zd for "
"ctypes callback function %R",
i, callable);
goto Done;
Expand Down

0 comments on commit 302f729

Please sign in to comment.