mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Improved error message
Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
parent
27c0747518
commit
e01081bf8b
|
@ -536,7 +536,7 @@ getink(PyObject* color, Imaging im, char* ink)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PyErr_SetString(PyExc_TypeError, "color must be int or tuple");
|
PyErr_SetString(PyExc_TypeError, "color must be int or single-element tuple");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user