diff options
| author | bors <bors@rust-lang.org> | 2013-11-13 16:26:15 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-13 16:26:15 -0800 |
| commit | 8a3b35f68a32c3d0111d12b058d24852b024f1b3 (patch) | |
| tree | 2c410cb8133bcc18b1d6ed5e01925cdb573f76b9 | |
| parent | 49c6ae10cb2a67a3e673507213ffed3201e43c9c (diff) | |
| parent | d328ab765beefa2d8a4e2692343c5886a19c1ba1 (diff) | |
| download | rust-8a3b35f68a32c3d0111d12b058d24852b024f1b3.tar.gz rust-8a3b35f68a32c3d0111d12b058d24852b024f1b3.zip | |
auto merge of #10464 : gutworth/rust/snap-err, r=pnkfelix
...tatement
| -rw-r--r-- | src/etc/snapshot.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py index e7057defd77..99193d905f8 100644 --- a/src/etc/snapshot.py +++ b/src/etc/snapshot.py @@ -148,8 +148,11 @@ def get_url_to_file(u,f): returncode = subprocess.call(["wget", "-O", tmpf, u]) if returncode != 0: - os.unlink(tmpf) - raise + try: + os.unlink(tmpf) + except OSError as e: + pass + raise Exception("failed to fetch url") os.rename(tmpf, f) def snap_filename_hash_part(snap): |
