diff --git a/src/ImgManip.py b/src/ImgManip.py index 95d737815..0852bc184 100644 --- a/src/ImgManip.py +++ b/src/ImgManip.py @@ -118,7 +118,7 @@ def image_dpi(source): else: try: dpi = img.info["dpi"] - except AttributeError, KeyError: + except (AttributeError, KeyError): dpi = None return dpi