Commit 8c1107c3 authored by jvoisin's avatar jvoisin
Browse files

Make cairo behave in a less idiotic way

Because raising errors when unable to process
stuff instead of an exception is dumb.
parent 6df61528
Pipeline #61895 passed with stages
in 5 minutes and 43 seconds
......@@ -63,7 +63,7 @@ class PNGParser(exiftool.ExiftoolParser):
try: # better fail here than later
cairo.ImageSurface.create_from_png(self.filename)
except Exception: # pragma: no cover
except: # pragma: no cover
# Cairo is returning some weird exceptions :/
raise ValueError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment