]> granicus.if.org Git - python/commitdiff
Don't crash if a window no longer exists.
authorGuido van Rossum <guido@python.org>
Mon, 8 Feb 1999 22:27:49 +0000 (22:27 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 8 Feb 1999 22:27:49 +0000 (22:27 +0000)
Tools/idle/WindowList.py

index 537b31c12e34d44ea5f06911a92b79c86b66ab4d..3a85c1939e3e64a665b7b3d2f2e6a45b8f1c1ab0 100644 (file)
@@ -19,7 +19,10 @@ class WindowList:
         list = []
         for key in self.dict.keys():
             window = self.dict[key]
-            title = window.get_title()
+            try:
+                title = window.get_title()
+            except TclError:
+                continue
             list.append((title, window))
         list.sort()
         for title, window in list: