Rescue Mastodon::DimensionsValidationError in Remoteable (#7662)

Fix #7660
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2018-05-29 01:39:02 +02:00 committed by Yamagishi Kazutoshi
parent d95642f6d9
commit e599d7caf2
1 changed files with 1 additions and 1 deletions

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