mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 03:21:44 +03:00
Clarified error message
This commit is contained in:
parent
256372724b
commit
1c617a9877
|
@ -298,7 +298,7 @@ get_unpacker(ImagingDecoderObject *decoder, const char *mode, const char *rawmod
|
|||
unpack = ImagingFindUnpacker(mode, rawmode, &bits);
|
||||
if (!unpack) {
|
||||
Py_DECREF(decoder);
|
||||
PyErr_SetString(PyExc_ValueError, "unknown raw mode");
|
||||
PyErr_SetString(PyExc_ValueError, "unknown raw mode for given image mode");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user