find-appcast: also bail on SSL error

This commit is contained in:
Vítor Galvão
2020-03-22 01:47:05 +00:00
parent 8f701d803c
commit 2fc6bfd88e
+4 -1
View File
@@ -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