Skip to content

Commit

Permalink
Fix tcl/tk loading error handling
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
  • Loading branch information
javidcf and nulano committed Jan 5, 2023
1 parent da39e4e commit 2cc40cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tk/tkImaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ load_tkinter_funcs(void) {
}

free(hMods);
if (found_tcl != 1) {
if (found_tcl == 0) {
PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
} else if (found_tk == 0) {
PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines");
Expand Down

0 comments on commit 2cc40cc

Please sign in to comment.