diff options
| author | jvoisin <julien.voisin@dustri.org> | 2021-06-21 22:39:45 +0200 |
|---|---|---|
| committer | jvoisin <julien.voisin@dustri.org> | 2021-06-21 22:39:45 +0200 |
| commit | 8c1107c358ab25e541779d57f4d802bb491d55b0 (patch) | |
| tree | 93d5c5d3f97d0ab06b365b113505fcb0f49f52fb | |
| parent | 6df615281b2a649b85ff7670f6d87d3beed0b977 (diff) | |
| download | external_mat2-8c1107c358ab25e541779d57f4d802bb491d55b0.tar.gz external_mat2-8c1107c358ab25e541779d57f4d802bb491d55b0.tar.bz2 external_mat2-8c1107c358ab25e541779d57f4d802bb491d55b0.zip | |
Make cairo behave in a less idiotic way
Because raising errors when unable to process
stuff instead of an exception is dumb.
| -rw-r--r-- | libmat2/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/images.py b/libmat2/images.py index 86e6b17..e55b765 100644 --- a/libmat2/images.py +++ b/libmat2/images.py @@ -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 |
