reraise seahorse error on incoming statuses

This commit is contained in:
khr 2021-04-05 21:01:48 -07:00
parent 9c46d38db4
commit 1217500350
1 changed files with 2 additions and 2 deletions

View File

@ -253,8 +253,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
rescue Mastodon::UnexpectedResponseError, HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError rescue Mastodon::UnexpectedResponseError, HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id) RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
rescue Seahorse::Client::NetworkingError rescue Seahorse::Client::NetworkingError
Rails.logger.info "Ran into seahorse networking error on MEDIA:#{media_attachment.id} for STATUS:#{media_attachment.status_id}" Rails.logger.info "Ran into seahorse networking error on MEDIA:#{media_attachment.id} (url:#{media_attachment.remote_url})"
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id) raise
end end
end end