Catch exception when program check has non-zero return code

See #1175.
This commit is contained in:
Thomas Scholtes 2014-12-29 12:07:57 +01:00
parent 50a9c2c7d8
commit b33d5b577a

View file

@ -120,6 +120,8 @@ def has_program(cmd, args=['--version']):
stdout=devnull, stdin=devnull) stdout=devnull, stdin=devnull)
except OSError: except OSError:
return False return False
except subprocess.CalledProcessError:
return False
else: else:
return True return True