summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/tkFont.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-04-12 15:28:49 (GMT)
committerGeorg Brandl <georg@python.org>2006-04-12 15:28:49 (GMT)
commit314fce92dd12a8ff82876bd18845a2249a931fae (patch)
tree85e5c357f949a1eec530a31591c8f7db3428ef3a /Lib/lib-tk/tkFont.py
parent6a67e4ead43583b0c9252b8e931b669c45f32142 (diff)
downloadcpython-314fce92dd12a8ff82876bd18845a2249a931fae.zip
cpython-314fce92dd12a8ff82876bd18845a2249a931fae.tar.gz
cpython-314fce92dd12a8ff82876bd18845a2249a931fae.tar.bz2
Patch #1468808: don't complain if Tkinter is already deleted at the time Font.__del__ is run.
Diffstat (limited to 'Lib/lib-tk/tkFont.py')
-rw-r--r--Lib/lib-tk/tkFont.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/lib-tk/tkFont.py b/Lib/lib-tk/tkFont.py
index 5b5a6ba..15dea2e 100644
--- a/Lib/lib-tk/tkFont.py
+++ b/Lib/lib-tk/tkFont.py
@@ -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):