From: abcang Date: Mon, 10 Jul 2017 11:59:29 +0000 (+0900) Subject: Rescue exceptions related to Goldfinger at FetchRemoteStatusService (#4138) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=617208053c2bf935d2dd3944bb2b9192a388f0b4;p=mastodon.git Rescue exceptions related to Goldfinger at FetchRemoteStatusService (#4138) --- diff --git a/app/services/fetch_remote_status_service.rb b/app/services/fetch_remote_status_service.rb index f414813ad..4cfd33d90 100644 --- a/app/services/fetch_remote_status_service.rb +++ b/app/services/fetch_remote_status_service.rb @@ -33,6 +33,9 @@ class FetchRemoteStatusService < 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 def confirmed_domain?(domain, account)