From aacf9dd950a3ddc2b87dec25f1c497c50825e9ce Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Apr 2006 09:04:52 +0000 Subject: [PATCH] fix TB when message from unknown contact --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 6e34c021f..c49550f55 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -531,7 +531,7 @@ class Interface: # Handle chat states contact = gajim.contacts.get_contact(account, jid, resource) - if isinstance(contact, list): + if contact and isinstance(contact, list): contact = contact[0] if contact: contact.composing_jep = composing_jep