Commit a9e811bd authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

getdeps: regard IOError as transient when fetching URLs

Summary:
this should help avoid this particular error:

```
IOError: [Errno socket error] [Errno 11001] getaddrinfo failed
```

Reviewed By: chadaustin

Differential Revision: D17886598

fbshipit-source-id: bd9f5b84ebd7ca5c339be3afec3a975fa907d052
parent 4a9c487d
......@@ -572,7 +572,7 @@ def download_url_to_file_with_progress(url, file_name):
start = time.time()
try:
(_filename, headers) = urlretrieve(url, file_name, reporthook=progress.progress)
except OSError as exc:
except (OSError, IOError) as exc:
raise TransientFailure(
"Failed to download %s to %s: %s" % (url, file_name, str(exc))
)
......
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