summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/downloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index f8e7d83..ee62426 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -271,7 +271,7 @@ class Downloader
times = 0
begin
block.call
- rescue Errno::ETIMEDOUT, SocketError, OpenURI::HTTPError, Net::ReadTimeout => e
+ rescue Errno::ETIMEDOUT, SocketError, OpenURI::HTTPError, Net::ReadTimeout, Net::OpenTimeout => e
raise if e.is_a?(OpenURI::HTTPError) && e.message !~ /^50[023] / # retry only 500, 502, 503 for http error
times += 1
if times <= max_times