aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 2cd85f3bb..0c89c1f2b 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -39,8 +39,8 @@ class HttpDownloadStrategy <AbstractDownloadStrategy
unless @dl.exist?
begin
curl @url, '-o', @dl
- rescue
- @dl.unlink
+ rescue Exception
+ @dl.unlink if @dl.exist?
raise
end
else