mirror of https://github.com/python/cpython
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.
This commit is contained in:
parent
6a67e4ead4
commit
314fce92dd
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue