Browse Source

Rescue Mastodon::DimensionsValidationError in Remoteable (#7662)

Fix #7660
pull/4/head
Eugen Rochko 6 years ago
committed by Yamagishi Kazutoshi
parent
commit
e599d7caf2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/concerns/remotable.rb

+ 1
- 1
app/models/concerns/remotable.rb View File

@ -41,7 +41,7 @@ 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
rescue Paperclip::Error, Mastodon::DimensionsValidationError => e
Rails.logger.debug "Error processing remote #{attachment_name}: #{e}"
nil
end

Loading…
Cancel
Save