Rescue exceptions related to Goldfinger at FetchRemoteStatusService (#4138)

signup-info-prompt
abcang 2017-07-10 20:59:29 +09:00 committed by Eugen Rochko
parent 4aa6cd66fc
commit 617208053c
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ class FetchRemoteStatusService < BaseService
rescue Nokogiri::XML::XPath::SyntaxError rescue Nokogiri::XML::XPath::SyntaxError
Rails.logger.debug 'Invalid XML or missing namespace' Rails.logger.debug 'Invalid XML or missing namespace'
nil nil
rescue Goldfinger::NotFoundError, Goldfinger::Error
Rails.logger.debug 'Exceptions related to Goldfinger occurs'
nil
end end
def confirmed_domain?(domain, account) def confirmed_domain?(domain, account)