Commit 314fce92 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 6a67e4ea
......@@ -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):
......
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