From 47920cf074286358ea70d017d7b7fd706204d739 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 30 Dec 2009 11:04:26 +0100 Subject: [PATCH] add some debuging info when saving avatar fails --- src/gtkgui_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index e531a69c3..7502137f5 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -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'