]> cat aescling's git repositories - mastodon.git/commitdiff
Rescue Mastodon::DimensionsValidationError in Remoteable (#7662)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 28 May 2018 23:39:02 +0000 (01:39 +0200)
committerYamagishi Kazutoshi <ykzts@desire.sh>
Mon, 28 May 2018 23:39:02 +0000 (08:39 +0900)
Fix #7660

app/models/concerns/remotable.rb

index 20ddbca53ce758f26204b7b8867aa7504c3eda89..c17f04776019aa2eb6f7a40ef0137a28b3c67e1b 100644 (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