Skip to content
Snippets Groups Projects
Commit be7eeb78 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

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

parent 50491e0d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment