Prevent TB

This commit is contained in:
Jean-Marie Traissard 2006-12-19 22:50:53 +00:00
parent ce3f2ca807
commit 30b1c838dd
1 changed files with 4 additions and 0 deletions

View File

@ -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']