]> cat aescling's git repositories - mastodon.git/commitdiff
Rescue exceptions related to Goldfinger (#4044)
authorabcang <abcang1015@gmail.com>
Sun, 9 Jul 2017 15:33:21 +0000 (00:33 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 9 Jul 2017 15:33:21 +0000 (17:33 +0200)
* Rescue exceptions related to Goldfinger

* Exclude Goldfinger::SSLError

app/services/fetch_remote_account_service.rb

index 8eed0d45429ad8488d9efc582eab448ab1fc46af..1efac365b0c92b5c73584e890856b0cda6c03a22 100644 (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