From b33d5b577a845b08bbff7a035d47fc73f4f36b51 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Mon, 29 Dec 2014 12:07:57 +0100 Subject: [PATCH] Catch exception when program check has non-zero return code See #1175. --- test/helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helper.py b/test/helper.py index 4cd7e8ef2..459e643a0 100644 --- a/test/helper.py +++ b/test/helper.py @@ -120,6 +120,8 @@ def has_program(cmd, args=['--version']): stdout=devnull, stdin=devnull) except OSError: return False + except subprocess.CalledProcessError: + return False else: return True