diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-23 12:31:03 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-23 12:31:03 -0400 |
commit | c8507a0553425210a7729a30b85e40870848648b (patch) | |
tree | f64f143454ab808ee46b9870e37a62a944a4d5c1 | |
parent | c2b328e8ce968066fd113fd10941b46947f9655a (diff) | |
download | external_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.py | 6 |
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() |