Skip to content
Snippets Groups Projects
Commit 8c1107c3 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
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
Branches
Tags
No related merge requests found
Pipeline #60936 passed with warnings
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment