diff --git a/libmat2/images.py b/libmat2/images.py index da42258..6066b07 100644 --- a/libmat2/images.py +++ b/libmat2/images.py @@ -112,7 +112,11 @@ class GdkPixbufAbstractParser(exiftool.ExiftoolParser): pixbuf = GdkPixbuf.Pixbuf.new_from_file(self.filename) if extension.lower() == '.jpg': extension = '.jpeg' # gdk is picky - pixbuf.savev(self.output_filename, type=extension[1:], option_keys=[], option_values=[]) + try: + pixbuf.savev(self.output_filename, type=extension[1:], + option_keys=[], option_values=[]) + except GLib.GError: # pragma: no cover + return False return True