mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-10-08 00:02:41 -04:00
Rescue OpenSSL::SSL::SSLError
This commit is contained in:
parent
0d4fbcbf76
commit
2da45b1ed9
@ -214,7 +214,7 @@ class FastImage
|
|||||||
raise SizeNotFound if @options[:raise_on_failure] && @property == :size && !@size
|
raise SizeNotFound if @options[:raise_on_failure] && @property == :size && !@size
|
||||||
|
|
||||||
rescue Timeout::Error, SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET,
|
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]
|
raise ImageFetchFailure if @options[:raise_on_failure]
|
||||||
rescue NoMethodError # 1.8.7p248 can raise this due to a net/http bug
|
rescue NoMethodError # 1.8.7p248 can raise this due to a net/http bug
|
||||||
raise ImageFetchFailure if @options[:raise_on_failure]
|
raise ImageFetchFailure if @options[:raise_on_failure]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user