]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__...
authorGeorg Brandl <georg@python.org>
Wed, 12 Apr 2006 15:28:52 +0000 (15:28 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 12 Apr 2006 15:28:52 +0000 (15:28 +0000)
 (backport from rev. 45310)

Lib/lib-tk/tkFont.py

index afbc18917dbc6445ed316c0cc66e31ee7792ebdd..c0e7da0f9b8ea0bd775c8de7b3e58c108b78925a 100644 (file)
@@ -117,7 +117,9 @@ class Font:
         try:
             if self.delete_font:
                 self._call("font", "delete", self.name)
-        except (AttributeError, Tkinter.TclError):
+        except (KeyboardInterrupt, SystemExit):
+            raise
+        except Exception:
             pass
 
     def copy(self):