Skip to content
Snippets Groups Projects
Commit 30b1c838 authored by jimpp's avatar jimpp
Browse files

Prevent TB

parent ce3f2ca8
No related branches found
No related tags found
No related merge requests found
......@@ -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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment