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