about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-07-10 00:33:21 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-09 17:33:21 +0200
commit307f3e0dd77b338669648f830f7f74103d2d226f (patch)
tree16d1b8165491398e30ba9164d1acc42c5e5b20ac /app
parentfc4c74660b690038ae48264f9d5b0230df58acc4 (diff)
Rescue exceptions related to Goldfinger (#4044)
* Rescue exceptions related to Goldfinger

* Exclude Goldfinger::SSLError
Diffstat (limited to 'app')
-rw-r--r--app/services/fetch_remote_account_service.rb3
1 files changed, 3 insertions, 0 deletions
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