aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-08-22 22:55:10 -0500
committerJack Nagel2014-08-22 22:55:10 -0500
commitbc2b9ae8dc6c0256267ff8ff7bc90e348e4cf12c (patch)
tree493e1c973d7046e66c204022644c8504f9e86f8a
parentd79ee41dd8c7690dc7a49a2575f1f62b6368adae (diff)
downloadhomebrew-bc2b9ae8dc6c0256267ff8ff7bc90e348e4cf12c.tar.bz2
Rescue only DownloadError
-rw-r--r--Library/Homebrew/cmd/fetch.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb
index 0c3d39b4b..cb86545ae 100644
--- a/Library/Homebrew/cmd/fetch.rb
+++ b/Library/Homebrew/cmd/fetch.rb
@@ -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?