mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 07:04:45 +03:00
Merge 2534b26283
into 2a2603ba90
This commit is contained in:
commit
d93120e59a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user