[Python-checkins] r45311 - python/branches/release24-maint/Lib/lib-tk/tkFont.py
georg.brandl
python-checkins at python.org
Wed Apr 12 17:28:53 CEST 2006
Author: georg.brandl
Date: Wed Apr 12 17:28:52 2006
New Revision: 45311
Modified:
python/branches/release24-maint/Lib/lib-tk/tkFont.py
Log:
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.
(backport from rev. 45310)
Modified: python/branches/release24-maint/Lib/lib-tk/tkFont.py
==============================================================================
--- python/branches/release24-maint/Lib/lib-tk/tkFont.py (original)
+++ python/branches/release24-maint/Lib/lib-tk/tkFont.py Wed Apr 12 17:28:52 2006
@@ -117,7 +117,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