diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2015-03-07 23:03:25 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2015-03-07 23:03:25 +0300 |
commit | c95e0859139998d3eee10b8169875d96ebd38521 (patch) | |
tree | 49f5f5b0837990ff2b07f3212150abd841493878 /src/roster_window.py | |
parent | 9f3fec4ef702806f85322a57ff826b82e068fbc2 (diff) |
prevent traceback. Fixes #7960
Diffstat (limited to 'src/roster_window.py')
-rw-r--r-- | src/roster_window.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/roster_window.py b/src/roster_window.py index 4729844de..e63a0a900 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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) |