diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index 0c50afe13..8e0333ee9 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -61,7 +61,7 @@ def has_ghostscript(): with open(os.devnull, 'wb') as devnull: subprocess.check_call(['gs', '--version'], stdout=devnull) return True - except OSError: + except (OSError, subprocess.CalledProcessError): # no ghostscript pass return False