Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.

This commit is contained in:
Georg Brandl 2006-04-12 15:28:49 +00:00
parent 6a67e4ead4
commit 314fce92dd
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,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):