1
0
mirror of synced 2024-11-25 10:44:23 +01:00

Make cairo behave in a less idiotic way

Because raising errors when unable to process
stuff instead of an exception is dumb.
This commit is contained in:
jvoisin 2021-06-21 22:39:45 +02:00
parent 6df615281b
commit 8c1107c358

View File

@ -63,7 +63,7 @@ class PNGParser(exiftool.ExiftoolParser):
try: # better fail here than later try: # better fail here than later
cairo.ImageSurface.create_from_png(self.filename) cairo.ImageSurface.create_from_png(self.filename)
except Exception: # pragma: no cover except: # pragma: no cover
# Cairo is returning some weird exceptions :/ # Cairo is returning some weird exceptions :/
raise ValueError raise ValueError