Skip to content
Snippets Groups Projects
Commit fd4f985c authored by Jack Nagel's avatar Jack Nagel
Browse files

Rescue only DownloadError

parent 262a503b
No related branches found
No related tags found
No related merge requests found
......@@ -79,13 +79,12 @@ module Homebrew
f.clear_cache if ARGV.force?
already_fetched = f.cached_download.exist?
download = nil
begin
download = f.fetch
rescue => e
rescue DownloadError
retry if retry_fetch? f
raise e
raise
end
return unless download.file?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment