about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-19 19:09:30 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-19 19:09:30 -0500
commit81adb660514524f0250c5d07e12af39e8f6177ce (patch)
tree4efc86d0ca124c8f92f50f1f1d6fd770a0b5baf7 /lib
parent9d2f75cedc5e89e7089a93ddaaec783cd2539f2e (diff)
[Rails] Handle potential errors while resolving accounts in monsterfork:refresh_application_actors
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/monsterfork.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tasks/monsterfork.rake b/lib/tasks/monsterfork.rake
index 63ce3cd4e..02ed97a9a 100644
--- a/lib/tasks/monsterfork.rake
+++ b/lib/tasks/monsterfork.rake
@@ -32,7 +32,11 @@ namespace :monsterfork do
     Account.remote.without_suspended.where(actor_type: 'Application').find_each do |account|
       Rails.logger.info("Refetching application actor: #{account.acct}")
       account.update!(last_webfingered_at: nil)
-      ResolveAccountService.new.call(account)
+      begin
+        ResolveAccountService.new.call(account)
+      rescue Goldfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::UnexpectedResponseError => e
+        Rails.logger.info("  Failed: #{e.class} (#{e.message})")
+      end
     end
     Rails.logger.info('Done!')
   end