rescue HTTP::ConnectionError (#3992)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
abcang 2017-06-29 20:04:07 +09:00 committed by Eugen Rochko
parent ead14f5bf0
commit b342c81c17
1 changed files with 4 additions and 0 deletions

View File

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