prevent traceback. Fixes #7960

This commit is contained in:
Yann Leboulanger 2015-03-07 21:03:25 +01:00
parent 9f3fec4ef7
commit c95e085913
1 changed files with 3 additions and 0 deletions

View File

@ -990,6 +990,9 @@ class RosterWindow:
# FIXME: maybe move to gajim.py
def remove_newly_added(self, jid, account):
if account not in gajim.newly_added:
# Account has been deleted during the timeout that called us
return
if jid in gajim.newly_added[account]:
gajim.newly_added[account].remove(jid)
self.draw_contact(jid, account)