From 1712fee3259b3d2a38e17a60120cdfa68c7ef48e Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Mon, 16 Jun 2008 09:51:03 +0000 Subject: [PATCH] [sgala] Prevent TB --- src/roster_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 7253acbf4..1fec55ea7 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1343,7 +1343,7 @@ class RosterWindow: jid = data['jid'] account = data['account'] contact = gajim.contacts.get_first_contact_from_jid(account, jid) - if self.contact_is_visible(contact, account): + if contact and self.contact_is_visible(contact, account): return True return False else: