From 1d5be0cc9d61ce43564de20b4d33db89a45b6fc7 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 3 Aug 2020 18:46:58 +0200 Subject: [PATCH] src/img2pdf_test.py: also catch subprocess.CalledProcessError --- src/img2pdf_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/img2pdf_test.py b/src/img2pdf_test.py index 36c7363..37af680 100644 --- a/src/img2pdf_test.py +++ b/src/img2pdf_test.py @@ -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...")