fix avatars in roster
This commit is contained in:
parent
3c4a63e97e
commit
d6f807bc0b
|
@ -61,7 +61,7 @@ def get_avatar_pixbuf_encoded_mime(photo):
|
||||||
img_encoded = photo['BINVAL']
|
img_encoded = photo['BINVAL']
|
||||||
avatar_encoded = img_encoded
|
avatar_encoded = img_encoded
|
||||||
try:
|
try:
|
||||||
img_decoded = base64.b64decode(img_encoded.encode('utf-8')).decode('utf-8')
|
img_decoded = base64.b64decode(img_encoded.encode('utf-8'))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if img_decoded:
|
if img_decoded:
|
||||||
|
|
Loading…
Reference in New Issue