Browse Source

Rescue exceptions related to Goldfinger (#4044)

* Rescue exceptions related to Goldfinger

* Exclude Goldfinger::SSLError
pull/4/head
abcang 7 years ago
committed by Eugen Rochko
parent
commit
307f3e0dd7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/services/fetch_remote_account_service.rb

+ 3
- 0
app/services/fetch_remote_account_service.rb View File

@ -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

Loading…
Cancel
Save