Merge pull request #5457 from radarhere/error

Clarified error message
This commit is contained in:
mergify[bot] 2021-04-30 10:42:29 +00:00 committed by GitHub
commit 676f4dbefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}