mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Replaced IOError with OSError
This commit is contained in:
parent
aedbc77618
commit
f9a2f991db
|
@ -956,7 +956,7 @@ font_render(FontObject *self, PyObject *args) {
|
||||||
/* we didn't ask for color, fall through to default */
|
/* we didn't ask for color, fall through to default */
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
PyErr_SetString(PyExc_IOError, "unsupported bitmap pixel mode");
|
PyErr_SetString(PyExc_OSError, "unsupported bitmap pixel mode");
|
||||||
goto glyph_error;
|
goto glyph_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1023,7 +1023,7 @@ font_render(FontObject *self, PyObject *args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PyErr_SetString(PyExc_IOError, "unsupported bitmap pixel mode");
|
PyErr_SetString(PyExc_OSError, "unsupported bitmap pixel mode");
|
||||||
goto glyph_error;
|
goto glyph_error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user