From fd6b2dda67c9af50100ce1c9a318761e54bc0f36 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 17 Feb 2006 21:52:22 +0000 Subject: [PATCH] fix #1572 --- src/gajim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index f2caa0e0d..a97a2b2e4 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -942,6 +942,8 @@ class Interface: os.remove(path_to_original_file) pixbuf, typ = gtkgui_helpers.get_pixbuf_from_data(photo_decoded, want_type = True) + if pixbuf is None: + return if typ not in ('jpeg', 'png'): gajim.log.debug('gtkpixbuf cannot save other than jpeg and png formats. saving %s\'avatar as png file (originaly %s)' % (jid, typ)) typ = 'png'