don't crash on removed contacts
This commit is contained in:
parent
db2494d3ad
commit
f33ba07b30
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue