Prevent TB
This commit is contained in:
parent
ce3f2ca807
commit
30b1c838dd
|
@ -355,6 +355,10 @@ def get_pixbuf_from_data(file_data, want_type = False):
|
||||||
pixbuf = pixbufloader.get_pixbuf()
|
pixbuf = pixbufloader.get_pixbuf()
|
||||||
except gobject.GError: # 'unknown image format'
|
except gobject.GError: # 'unknown image format'
|
||||||
pixbuf = None
|
pixbuf = None
|
||||||
|
if want_type:
|
||||||
|
return None, None
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
if want_type:
|
if want_type:
|
||||||
typ = pixbufloader.get_format()['name']
|
typ = pixbufloader.get_format()['name']
|
||||||
|
|
Loading…
Reference in New Issue