Commit ec119a3f authored by Guido van Rossum's avatar Guido van Rossum

Don't crash if a window no longer exists.

parent 5ec13c53
...@@ -19,7 +19,10 @@ class WindowList: ...@@ -19,7 +19,10 @@ class WindowList:
list = [] list = []
for key in self.dict.keys(): for key in self.dict.keys():
window = self.dict[key] window = self.dict[key]
try:
title = window.get_title() title = window.get_title()
except TclError:
continue
list.append((title, window)) list.append((title, window))
list.sort() list.sort()
for title, window in list: for title, window in list:
......
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