]> cat aescling's git repositories - mastodon.git/commitdiff
Rescue exceptions related to Goldfinger at FetchRemoteStatusService (#4138)
authorabcang <abcang1015@gmail.com>
Mon, 10 Jul 2017 11:59:29 +0000 (20:59 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 10 Jul 2017 11:59:29 +0000 (13:59 +0200)
app/services/fetch_remote_status_service.rb

index f414813ada5b7fc0e4b6afeabb651e701242534b..4cfd33d90a0b90a8eab249db538eac2d65716946 100644 (file)
@@ -33,6 +33,9 @@ class FetchRemoteStatusService < 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
 
   def confirmed_domain?(domain, account)