[Python-checkins] r45310 - python/trunk/Lib/lib-tk/tkFont.py

georg.brandl python-checkins at python.org
Wed Apr 12 17:28:49 CEST 2006


Author: georg.brandl
Date: Wed Apr 12 17:28:49 2006
New Revision: 45310

Modified:
   python/trunk/Lib/lib-tk/tkFont.py
Log:
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.


Modified: python/trunk/Lib/lib-tk/tkFont.py
==============================================================================
--- python/trunk/Lib/lib-tk/tkFont.py	(original)
+++ python/trunk/Lib/lib-tk/tkFont.py	Wed Apr 12 17:28:49 2006
@@ -108,7 +108,9 @@
         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):


More information about the Python-checkins mailing list