1
0
Fork 0
forked from josch/img2pdf

src/img2pdf_test.py: also catch subprocess.CalledProcessError

This commit is contained in:
Johannes 'josch' Schauer 2020-08-03 18:46:58 +02:00
parent e151ca27eb
commit 1d5be0cc9d
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -61,6 +61,8 @@ try:
HAVE_IMAGEMAGICK_MODERN = False
except FileNotFoundError:
HAVE_IMAGEMAGICK_MODERN = False
except subprocess.CalledProcessError:
HAVE_IMAGEMAGICK_MODERN = False
if not HAVE_IMAGEMAGICK_MODERN:
warnings.warn("imagemagick >= 6.9.10 not available, skipping certain checks...")