diff options
Diffstat (limited to 'ez_setup.py')
-rw-r--r-- | ez_setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ez_setup.py b/ez_setup.py index b02f3f17..03458b70 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -200,7 +200,11 @@ download_file_curl.viable = has_curl def download_file_wget(url, target): cmd = ['wget', url, '--quiet', '--output-document', target] - subprocess.check_call(cmd) + try: + subprocess.check_call(cmd) + except subprocess.CalledProcessError: + os.unlink(target) + raise def has_wget(): cmd = ['wget', '--version'] |