mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-16 20:36:31 +03:00
commit
676f4dbefb
|
@ -298,7 +298,7 @@ get_unpacker(ImagingDecoderObject *decoder, const char *mode, const char *rawmod
|
||||||
unpack = ImagingFindUnpacker(mode, rawmode, &bits);
|
unpack = ImagingFindUnpacker(mode, rawmode, &bits);
|
||||||
if (!unpack) {
|
if (!unpack) {
|
||||||
Py_DECREF(decoder);
|
Py_DECREF(decoder);
|
||||||
PyErr_SetString(PyExc_ValueError, "unknown raw mode");
|
PyErr_SetString(PyExc_ValueError, "unknown raw mode for given image mode");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user