From 767975d4c71b958b8540593b0a9e551eef5eaba1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 11 Sep 2007 09:59:10 +0000 Subject: [PATCH] don't try to get extension of an image if type is unknown. fixes #3436 --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index e90bcae3b..f80e8d240 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1483,9 +1483,9 @@ class Interface: extension = '_local.png' # save local avatars as png file else: pixbuf, typ = gtkgui_helpers.get_pixbuf_from_data(photo, want_type = True) - extension = '.' + typ if pixbuf is None: return + extension = '.' + typ 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'