fix avatars in roster

This commit is contained in:
Denis Fomin 2013-01-03 14:58:01 +04:00
parent 3c4a63e97e
commit d6f807bc0b
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def get_avatar_pixbuf_encoded_mime(photo):
img_encoded = photo['BINVAL']
avatar_encoded = img_encoded
try:
img_decoded = base64.b64decode(img_encoded.encode('utf-8')).decode('utf-8')
img_decoded = base64.b64decode(img_encoded.encode('utf-8'))
except Exception:
pass
if img_decoded: