Catch exception for non supported image type by PixbufLoader

This commit is contained in:
Cédric Krier committed 2010-03-20 15:18:18 +01:00
1 parent 26490e044d
commit 2231b1f8ff
1 file changed
+1 -1
@@ -155,8 +155,8 @@ class Image(WidgetInterface):
pixbuf = None
for ftype in ('jpeg', 'gif', 'png', 'bmp'):
loader = gtk.gdk.PixbufLoader(ftype)
try:
loader = gtk.gdk.PixbufLoader(ftype)
loader.write(data, len(data))
except:
continue