Commit 6fa1f346 authored by Georg Brandl's avatar Georg Brandl

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

parent 66e42014
...@@ -108,7 +108,9 @@ class Font: ...@@ -108,7 +108,9 @@ class Font:
try: try:
if self.delete_font: if self.delete_font:
self._call("font", "delete", self.name) self._call("font", "delete", self.name)
except (AttributeError, Tkinter.TclError): except (KeyboardInterrupt, SystemExit):
raise
except Exception:
pass pass
def copy(self): def copy(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment