prevent traceback when destroy handler already clean self.instances[account]['online_dialog'] dict. Fixes #5604
This commit is contained in:
parent
9d9ef1da89
commit
408be06002
|
@ -214,6 +214,8 @@ class Interface:
|
||||||
# .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()
|
||||||
|
if name in self.instances[account]['online_dialog']:
|
||||||
|
# destroy handler may have already removed it
|
||||||
del self.instances[account]['online_dialog'][name]
|
del self.instances[account]['online_dialog'][name]
|
||||||
for request in self.gpg_passphrase.values():
|
for request in self.gpg_passphrase.values():
|
||||||
if request:
|
if request:
|
||||||
|
|
Loading…
Reference in New Issue