From 8409611bb9186a5ea10cb1a917fd4e5d070135d9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 27 Dec 2012 17:05:58 +0100 Subject: Specify exceptions for strippers.py --- MAT/strippers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MAT') 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: import exiftool STRIPPERS['image/jpeg'] = exiftool.JpegStripper STRIPPERS['image/png'] = exiftool.PngStripper -except: # if exiftool is not installed, use hachoir +except OSError: # if exiftool is not installed, use hachoir print('Unable to find exiftool: limited images support') STRIPPERS['image/jpeg'] = images.JpegStripper STRIPPERS['image/png'] = images.PngStripper -- cgit v1.3