Browse Source

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

pull/4/head
ThibG 6 years ago
committed by Eugen Rochko
parent
commit
be7eeb7856
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/models/concerns/remotable.rb

+ 3
- 0
app/models/concerns/remotable.rb 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

Loading…
Cancel
Save