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

add some debuging info when saving avatar fails

parent 406e142b
No related branches found
No related tags found
No related merge requests found
......@@ -865,7 +865,8 @@ def on_avatar_save_as_menuitem_activate(widget, jid, account, default_name=''):
# Save image
try:
pixbuf.save(file_path, image_format)
except glib.GError:
except glib.GError, e:
log.debug('Error saving avatar: %s' % str(e))
if os.path.exists(file_path):
os.remove(file_path)
new_file_path = '.'.join(file_path.split('.')[:-1]) + '.jpeg'
......
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