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:
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:
......
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