Skip to content

Commit 35758f1

Browse files
author
Michiel de Hoon
committed
be sure to delete the file handler also in case of errorInCmd
1 parent add49bd commit 35758f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_tkinter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3405,6 +3405,7 @@ EventHook(void)
34053405
PyErr_SetRaisedException(excInCmd);
34063406
excInCmd = NULL;
34073407
PyErr_Print();
3408+
if (!stdin_ready) Tcl_DeleteFileHandler(tfile);
34083409
}
34093410
PyEval_SaveThread();
34103411
return 0;

0 commit comments

Comments
 (0)