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(): ...@@ -181,7 +181,7 @@ def has_powershell():
try: try:
try: try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull) subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except: except Exception:
return False return False
finally: finally:
devnull.close() devnull.close()
...@@ -199,7 +199,7 @@ def has_curl(): ...@@ -199,7 +199,7 @@ def has_curl():
try: try:
try: try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull) subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except: except Exception:
return False return False
finally: finally:
devnull.close() devnull.close()
...@@ -217,7 +217,7 @@ def has_wget(): ...@@ -217,7 +217,7 @@ def has_wget():
try: try:
try: try:
subprocess.check_call(cmd, stdout=devnull, stderr=devnull) subprocess.check_call(cmd, stdout=devnull, stderr=devnull)
except: except Exception:
return False return False
finally: finally:
devnull.close() 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