diff options
| author | jvoisin | 2021-06-21 22:39:45 +0200 |
|---|---|---|
| committer | jvoisin | 2021-06-21 22:39:45 +0200 |
| commit | 8c1107c358ab25e541779d57f4d802bb491d55b0 (patch) | |
| tree | 93d5c5d3f97d0ab06b365b113505fcb0f49f52fb /libmat2 | |
| parent | 6df615281b2a649b85ff7670f6d87d3beed0b977 (diff) | |
Make cairo behave in a less idiotic way
Because raising errors when unable to process
stuff instead of an exception is dumb.
Diffstat (limited to 'libmat2')
| -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): | |||
| 63 | 63 | ||
| 64 | try: # better fail here than later | 64 | try: # better fail here than later |
| 65 | cairo.ImageSurface.create_from_png(self.filename) | 65 | cairo.ImageSurface.create_from_png(self.filename) |
| 66 | except Exception: # pragma: no cover | 66 | except: # pragma: no cover |
| 67 | # Cairo is returning some weird exceptions :/ | 67 | # Cairo is returning some weird exceptions :/ |
| 68 | raise ValueError | 68 | raise ValueError |
| 69 | 69 | ||
