Catch all GError exception when using PixbufLoader
issue2144
This commit is contained in:
1 parent
e2f8f43483
commit
24d73cd70e
1 file changed
+2
-2
@@ -207,10 +207,10 @@ class Image(WidgetInterface):
|
||||
try:
|
||||
loader = gtk.gdk.PixbufLoader(ftype)
|
||||
loader.write(data, len(data))
|
||||
pixbuf = loader.get_pixbuf()
|
||||
loader.close()
|
||||
except glib.GError:
|
||||
continue
|
||||
pixbuf = loader.get_pixbuf()
|
||||
loader.close()
|
||||
if pixbuf:
|
||||
break
|
||||
if not pixbuf:
|
||||
|
||||
Reference in new issue
Block a user