From 29431cb04cb7cb2ad66aaa3dda0be1c7ffb63c9c Mon Sep 17 00:00:00 2001 From: junglecow <junglecow@no-mail.com> Date: Mon, 13 Nov 2006 20:34:24 +0000 Subject: [PATCH] Fixed KeyError TB --- src/vcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vcard.py b/src/vcard.py index 75b1cddc92..844425b65c 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -98,7 +98,7 @@ class VcardWindow: annotation = buffer.get_text(buffer.get_start_iter(), buffer.get_end_iter()) connection = gajim.connections[self.account] - if annotation != connection.annotations[self.contact.jid]: + if annotation != connection.annotations.get(self.contact.jid, ''): connection.annotations[self.contact.jid] = annotation connection.store_annotations() -- GitLab