From: abcang Date: Thu, 29 Jun 2017 11:04:07 +0000 (+0900) Subject: rescue HTTP::ConnectionError (#3992) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b342c81c17cc8cf4af2ac3b1c57f4f250e0fefc1;p=mastodon.git rescue HTTP::ConnectionError (#3992) --- diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb index 8f42db0aa..d430b22e9 100644 --- a/app/services/fetch_atom_service.rb +++ b/app/services/fetch_atom_service.rb @@ -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