Skip to content
Snippets Groups Projects
Commit 9918b17e authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

check if all fiels for the photo are in vcard

parent 36a5469c
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ class Vcard_window:
for i in vcard.keys():
if i == 'PHOTO':
img_decoded = None
if vcard[i].has_key('BINVAL'):
if vcard[i].has_key('BINVAL') and vcard[i].has_key('TYPE'):
img_encoded = vcard[i]['BINVAL']
self.avatar_encoded = img_encoded
self.avatar_mime_type = vcard[i]['TYPE']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment