lib/cutting_edge/workers/dependency.rb in cutting_edge-0.2.1 vs lib/cutting_edge/workers/dependency.rb in cutting_edge-0.3
- old
+ new
@@ -144,10 +144,10 @@
def http_get(url)
begin
response = HTTP.headers(@provider.headers(@auth_token)).get(url)
response.status == 200 ? response.to_s : nil
- rescue HTTP::TimeoutError => e
+ rescue HTTP::Error, OpenSSL::SSL::SSLError, Addressable::URI::InvalidURIError => e
log_info("Encountered error when fetching latest version of #{url}: #{e.class} #{e.message}")
end
end
def is_outdated?(dependency, latest_version)
\ No newline at end of file