forked from cybrespace/mastodon
reraise seahorse error on incoming statuses
This commit is contained in:
parent
9c46d38db4
commit
1217500350
|
@ -253,8 +253,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
rescue Mastodon::UnexpectedResponseError, HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError
|
||||
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
|
||||
rescue Seahorse::Client::NetworkingError
|
||||
Rails.logger.info "Ran into seahorse networking error on MEDIA:#{media_attachment.id} for STATUS:#{media_attachment.status_id}"
|
||||
RedownloadMediaWorker.perform_in(rand(30..600).seconds, media_attachment.id)
|
||||
Rails.logger.info "Ran into seahorse networking error on MEDIA:#{media_attachment.id} (url:#{media_attachment.remote_url})"
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue