This commit is contained in:
Andrew Murray 2018-09-27 19:45:24 +00:00 committed by GitHub
commit d93120e59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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