From: abcang Date: Sun, 9 Jul 2017 15:33:21 +0000 (+0900) Subject: Rescue exceptions related to Goldfinger (#4044) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=307f3e0dd77b338669648f830f7f74103d2d226f;p=mastodon.git Rescue exceptions related to Goldfinger (#4044) * Rescue exceptions related to Goldfinger * Exclude Goldfinger::SSLError --- diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb index 8eed0d454..1efac365b 100644 --- a/app/services/fetch_remote_account_service.rb +++ b/app/services/fetch_remote_account_service.rb @@ -32,5 +32,8 @@ class FetchRemoteAccountService < BaseService rescue Nokogiri::XML::XPath::SyntaxError Rails.logger.debug 'Invalid XML or missing namespace' nil + rescue Goldfinger::NotFoundError, Goldfinger::Error + Rails.logger.debug 'Exceptions related to Goldfinger occurs' + nil end end