Skip to content

Commit 863e5ac

Browse files
committed
Fix errors on serializaiton of an image created by AOSP contacts
1 parent e59d9f5 commit 863e5ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vobject/vcard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def decode(cls, line):
130130
line.singletonparams.remove('BASE64')
131131
line.encoding_param = cls.base64string
132132
encoding = getattr(line, 'encoding_param', None)
133+
if encoding == 'BASE64':
134+
line.encoding_param = cls.base64string
133135
if encoding:
134136
if isinstance(line.value, bytes):
135137
line.value = codecs.decode(line.value, "base64")

0 commit comments

Comments
 (0)