Commit c8507a05 authored by Jason R. Coombs's avatar Jason R. Coombs

Don't trap KeyboardInterrupt (or other non-Exceptions) when testing download method. Fixes #172.

parent c2b328e8
......@@ -181,7 +181,7 @@ def has_powershell():
try:
try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except:
except Exception:
return False
finally:
devnull.close()
......@@ -199,7 +199,7 @@ def has_curl():
try:
try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except:
except Exception:
return False
finally:
devnull.close()
......@@ -217,7 +217,7 @@ def has_wget():
try:
try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except:
except Exception:
return False
finally:
devnull.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment