mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Don't crash if a window no longer exists.
This commit is contained in:
parent
5ec13c5318
commit
ec119a3fc9
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue