Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2015-03-07 23:03:25 +0300
committerYann Leboulanger <asterix@lagaule.org>2015-03-07 23:03:25 +0300
commitc95e0859139998d3eee10b8169875d96ebd38521 (patch)
tree49f5f5b0837990ff2b07f3212150abd841493878 /src/roster_window.py
parent9f3fec4ef702806f85322a57ff826b82e068fbc2 (diff)
prevent traceback. Fixes #7960
Diffstat (limited to 'src/roster_window.py')
-rw-r--r--src/roster_window.py3
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)