exceptions: gotta catch em all

staging
multiple creatures 2019-05-21 02:47:16 -05:00
parent d6f37c6ae0
commit 641e5acc09
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class ImportService < BaseService
activity = ActivityPub::Activity.factory(activity, @account, imported: true)
activity&.perform
rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotFound, Mastodon::ValidationError => e
rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotFound, Mastodon::ValidationError, HTTP::ConnectionError, HTTP::TimeoutError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e
Rails.logger.error "Error importing status (ActivityPub): #{e}"
nil
end