From 78f600acc3d285a0b6fc3ac3829688ba4de1c89e Mon Sep 17 00:00:00 2001 From: dutcu Date: Sat, 22 Jun 2024 16:42:14 +0200 Subject: [PATCH] branches fix --- src/PIL/ImageTk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/ImageTk.py b/src/PIL/ImageTk.py index 222428ed8..157dff57f 100644 --- a/src/PIL/ImageTk.py +++ b/src/PIL/ImageTk.py @@ -234,6 +234,7 @@ class BitmapImage: BitmapImage.branches["1"] = True self.__photo.tk.call("image", "delete", name) except Exception: + BitmapImage.branches["2"] = True BitmapImage pass # ignore internal errors