Skip to content

Commit

Permalink
Merge pull request #6715 from radarhere/oserror
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 4, 2022
2 parents 321c066 + f9a2f99 commit 7c00e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ font_render(FontObject *self, PyObject *args) {
/* we didn't ask for color, fall through to default */
#endif
default:
PyErr_SetString(PyExc_IOError, "unsupported bitmap pixel mode");
PyErr_SetString(PyExc_OSError, "unsupported bitmap pixel mode");
goto glyph_error;
}

Expand Down Expand Up @@ -1023,7 +1023,7 @@ font_render(FontObject *self, PyObject *args) {
}
}
} else {
PyErr_SetString(PyExc_IOError, "unsupported bitmap pixel mode");
PyErr_SetString(PyExc_OSError, "unsupported bitmap pixel mode");
goto glyph_error;
}
}
Expand Down

0 comments on commit 7c00e79

Please sign in to comment.