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:
parent
6df615281b
commit
8c1107c358
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user