From 7ee3ddac47c765d54d6300a03aef7acc213fd2ef Mon Sep 17 00:00:00 2001 From: abcang Date: Mon, 10 Jul 2017 00:33:21 +0900 Subject: [PATCH] Rescue exceptions related to Goldfinger (#4044) * Rescue exceptions related to Goldfinger * Exclude Goldfinger::SSLError --- app/services/fetch_remote_account_service.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/services/fetch_remote_account_service.rb b/app/services/fetch_remote_account_service.rb index 8eed0d4542..1efac365b0 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