diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-19 19:09:30 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-19 19:09:30 -0500 |
commit | 81adb660514524f0250c5d07e12af39e8f6177ce (patch) | |
tree | 4efc86d0ca124c8f92f50f1f1d6fd770a0b5baf7 /lib | |
parent | 9d2f75cedc5e89e7089a93ddaaec783cd2539f2e (diff) |
[Rails] Handle potential errors while resolving accounts in monsterfork:refresh_application_actors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/monsterfork.rake | 6 |
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 |