Catch exception for non supported image type by PixbufLoader
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user