From 2da45b1ed9926f37ea7864eb643cb54a0762e385 Mon Sep 17 00:00:00 2001 From: Shinichi NOMURA Date: Fri, 20 Apr 2018 17:58:39 +0900 Subject: [PATCH] Rescue OpenSSL::SSL::SSLError --- lib/fastimage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fastimage.rb b/lib/fastimage.rb index 777549d..a14eaca 100644 --- a/lib/fastimage.rb +++ b/lib/fastimage.rb @@ -214,7 +214,7 @@ class FastImage raise SizeNotFound if @options[:raise_on_failure] && @property == :size && !@size rescue Timeout::Error, SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET, - ImageFetchFailure, Net::HTTPBadResponse, EOFError, Errno::ENOENT + ImageFetchFailure, Net::HTTPBadResponse, EOFError, Errno::ENOENT, OpenSSL::SSL::SSLError raise ImageFetchFailure if @options[:raise_on_failure] rescue NoMethodError # 1.8.7p248 can raise this due to a net/http bug raise ImageFetchFailure if @options[:raise_on_failure]