From f33ba07b30c28326ecd5fd060b5c2f00f3586df4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 17 May 2014 19:17:12 +0200 Subject: [PATCH] don't crash on removed contacts --- modules/okc/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/okc/backend.py b/modules/okc/backend.py index 3920d8bb..252b106b 100644 --- a/modules/okc/backend.py +++ b/modules/okc/backend.py @@ -177,7 +177,7 @@ class OkCBackend(BaseBackend, ICapMessages, ICapContact, ICapMessagesPost, ICapD signature = u'' if mail.get('src', None): signature += u'Sent from my %s\n\n' % mail['src'] - if mail['id_from'] in contacts: + if contacts.get(mail['id_from'], None) is not None: signature += contacts[mail['id_from']].get_text() msg = Message(thread=thread,