aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-23 12:31:03 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-03-23 12:31:03 -0400
commitc8507a0553425210a7729a30b85e40870848648b (patch)
treef64f143454ab808ee46b9870e37a62a944a4d5c1
parentc2b328e8ce968066fd113fd10941b46947f9655a (diff)
downloadexternal_python_setuptools-c8507a0553425210a7729a30b85e40870848648b.tar.gz
external_python_setuptools-c8507a0553425210a7729a30b85e40870848648b.tar.bz2
external_python_setuptools-c8507a0553425210a7729a30b85e40870848648b.zip
Don't trap KeyboardInterrupt (or other non-Exceptions) when testing download method. Fixes #172.
-rw-r--r--ez_setup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ez_setup.py b/ez_setup.py
index 9811d7d8..775c3fb4 100644
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -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()