fix traceback
This commit is contained in:
parent
6aca316b7e
commit
b90382a352
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class Interface:
|
||||||
#('STATUS', account, show)
|
#('STATUS', account, show)
|
||||||
account = obj.conn.name
|
account = obj.conn.name
|
||||||
if obj.show in ('offline', 'error'):
|
if obj.show in ('offline', 'error'):
|
||||||
for name in self.instances[account]['online_dialog'].keys():
|
for name in list(self.instances[account]['online_dialog'].keys()):
|
||||||
# .keys() is needed to not have a dictionary length changed
|
# .keys() is needed to not have a dictionary length changed
|
||||||
# during iteration error
|
# during iteration error
|
||||||
self.instances[account]['online_dialog'][name].destroy()
|
self.instances[account]['online_dialog'][name].destroy()
|
||||||
|
|
Loading…
Add table
Reference in a new issue