Selfcheck fails to use curl 7.15.5 because curl --version has non-zero exit status
kundor opened this issue · 2 comments
kundor commented
On my system, I have an old version of curl (7.15.5.) Running curl --version exits with a status of 2.
eio selfcheck
runs the code (line 38 of util.py)
try:
subprocess.check_output(check_cli, shell=True, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
msg.append('%r not found or not usable.' % tool_name)
which fails then, even though curl is available.
Perhaps you could instead do something like
try:
subprocess.call(check_cli.split(), stderr=subprocess.STDOUT)
except OSError:
msg.append('%r not found or not usable.' % tool_name)
alexamici commented
Sorry for being so late. I really like your suggestion, thanks!