diff options
| author | jvoisin | 2012-12-27 17:05:58 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-27 17:05:58 +0100 |
| commit | 8409611bb9186a5ea10cb1a917fd4e5d070135d9 (patch) | |
| tree | 55f29fce94ef7244daad796b0f855190665f5ace /MAT | |
| parent | cffdcc1b1e78d48cad62c54432a9d8ce41f4d616 (diff) | |
Specify exceptions for strippers.py
Diffstat (limited to 'MAT')
| -rw-r--r-- | MAT/strippers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MAT/strippers.py b/MAT/strippers.py index 61030a7..4b673fe 100644 --- a/MAT/strippers.py +++ b/MAT/strippers.py | |||
| @@ -60,7 +60,7 @@ try: | |||
| 60 | import exiftool | 60 | import exiftool |
| 61 | STRIPPERS['image/jpeg'] = exiftool.JpegStripper | 61 | STRIPPERS['image/jpeg'] = exiftool.JpegStripper |
| 62 | STRIPPERS['image/png'] = exiftool.PngStripper | 62 | STRIPPERS['image/png'] = exiftool.PngStripper |
| 63 | except: # if exiftool is not installed, use hachoir | 63 | except OSError: # if exiftool is not installed, use hachoir |
| 64 | print('Unable to find exiftool: limited images support') | 64 | print('Unable to find exiftool: limited images support') |
| 65 | STRIPPERS['image/jpeg'] = images.JpegStripper | 65 | STRIPPERS['image/jpeg'] = images.JpegStripper |
| 66 | STRIPPERS['image/png'] = images.PngStripper | 66 | STRIPPERS['image/png'] = images.PngStripper |
