rescue HTTP::ConnectionError (#3992)

th-downstream
abcang 7 years ago committed by Eugen Rochko
parent 022878b743
commit 572513b0b0

@ -20,6 +20,10 @@ class FetchAtomService < BaseService
process_html(fetch(url)) process_html(fetch(url))
rescue OpenSSL::SSL::SSLError => e rescue OpenSSL::SSL::SSLError => e
Rails.logger.debug "SSL error: #{e}" Rails.logger.debug "SSL error: #{e}"
nil
rescue HTTP::ConnectionError => e
Rails.logger.debug "HTTP ConnectionError: #{e}"
nil
end end
private private

Loading…
Cancel
Save