Rescue only DownloadError
This commit is contained in:
parent
262a503b6f
commit
fd4f985cb6
@ -79,13 +79,12 @@ module Homebrew
|
|||||||
f.clear_cache if ARGV.force?
|
f.clear_cache if ARGV.force?
|
||||||
|
|
||||||
already_fetched = f.cached_download.exist?
|
already_fetched = f.cached_download.exist?
|
||||||
download = nil
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
download = f.fetch
|
download = f.fetch
|
||||||
rescue => e
|
rescue DownloadError
|
||||||
retry if retry_fetch? f
|
retry if retry_fetch? f
|
||||||
raise e
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
return unless download.file?
|
return unless download.file?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user