Catch exception for non supported image type by PixbufLoader

(transplanted from 09e92c3e15d403ad128aaf29c7c94469408f88a9)
This commit is contained in:
Cédric Krier committed 2010-03-20 15:18:18 +01:00
1 parent 50eea15ee0
commit afb8b802bb
1 file changed
+1 -1
@@ -154,8 +154,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