mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
parent
e945ab382a
commit
da39e4e38e
|
@ -365,7 +365,7 @@ load_tkinter_funcs(void) {
|
||||||
free(hMods);
|
free(hMods);
|
||||||
if (found_tcl != 1) {
|
if (found_tcl != 1) {
|
||||||
PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
|
PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
|
||||||
} else if (found_tk != 1) {
|
} else if (found_tk == 0) {
|
||||||
PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines");
|
PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines");
|
||||||
}
|
}
|
||||||
return (int) ((found_tcl != 1) || (found_tk != 1));
|
return (int) ((found_tcl != 1) || (found_tk != 1));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user