mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
find-appcast: also bail on SSL error
This commit is contained in:
@@ -26,7 +26,10 @@ def url_exist?(url)
|
||||
uri = URI.parse(url)
|
||||
response = Net::HTTP.get_response(uri)
|
||||
response.is_a? Net::HTTPSuccess
|
||||
rescue URI::InvalidURIError, Errno::ECONNREFUSED, SocketError
|
||||
rescue URI::InvalidURIError,
|
||||
Errno::ECONNREFUSED,
|
||||
SocketError,
|
||||
OpenSSL::SSL::SSLError
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user