logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 617208053c2bf935d2dd3944bb2b9192a388f0b4
parent: 4aa6cd66fce2940b1a26859de942fc5ec7ea4127
Author: abcang <abcang1015@gmail.com>
Date:   Mon, 10 Jul 2017 20:59:29 +0900

Rescue exceptions related to Goldfinger at FetchRemoteStatusService (#4138)


Diffstat:

Mapp/services/fetch_remote_status_service.rb3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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)