1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Catch Paperclip processing failures (fixes #6378) (#7439)

This commit is contained in:
ThibG 2018-05-11 13:14:50 +02:00 committed by Eugen Rochko
parent 50491e0d92
commit be7eeb7856

View file

@ -41,6 +41,9 @@ module Remotable
rescue HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e
Rails.logger.debug "Error fetching remote #{attachment_name}: #{e}"
nil
rescue Paperclip::Error => e
Rails.logger.debug "Error processing remote #{attachment_name}: #{e}"
nil
end
end