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()
|
||||
except gobject.GError: # 'unknown image format'
|
||||
pixbuf = None
|
||||
if want_type:
|
||||
return None, None
|
||||
else:
|
||||
return None
|
||||
|
||||
if want_type:
|
||||
typ = pixbufloader.get_format()['name']
|
||||
|
|
Loading…
Reference in New Issue