mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
rescue HTTP::ConnectionError (#3992)
This commit is contained in:
parent
ead14f5bf0
commit
b342c81c17
@ -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…
Reference in New Issue
Block a user