diff options
author | Denis Fomin <fominde@gmail.com> | 2013-01-03 17:02:14 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-01-03 17:02:14 +0400 |
commit | 3911c72ba93a67c9c5a29884f3199611e95c96c3 (patch) | |
tree | ee820bad9b2a8125a164ebd82a80fff2b3d64202 /src/profile_window.py | |
parent | d6f807bc0b3d072099b5c358f9595b31438a9e7e (diff) |
fix set avatar
Diffstat (limited to 'src/profile_window.py')
-rw-r--r-- | src/profile_window.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/profile_window.py b/src/profile_window.py index 696c66beb..a56911cc2 100644 --- a/src/profile_window.py +++ b/src/profile_window.py @@ -171,8 +171,7 @@ class ProfileWindow: button.show() text_button = self.xml.get_object('NOPHOTO_button') text_button.hide() - self.avatar_encoded = base64.b64encode(data.encode('utf-8')).decode( - 'utf-8') + self.avatar_encoded = base64.b64encode(data).decode('utf-8') # returns None if unknown type self.avatar_mime_type = mimetypes.guess_type(path_to_file)[0] if must_delete: |