1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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