Browse Source

rescue HTTP::ConnectionError (#3992)

closed-social-v3
abcang 7 years ago
committed by Eugen Rochko
parent
commit
b342c81c17
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/services/fetch_atom_service.rb

+ 4
- 0
app/services/fetch_atom_service.rb 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

Loading…
Cancel
Save