1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 06:48:28 +09:00

Rescue Addressable::URI::InvalidURIError at Remotable (#4017)

This commit is contained in:
abcang 2017-06-30 20:38:36 +09:00 committed by Eugen Rochko
parent a27879c0cf
commit 1273fbf86e

View File

@ -26,8 +26,9 @@ module Remotable
send("#{attachment_name}_file_name=", filename)
self[attribute_name] = url if has_attribute?(attribute_name)
rescue HTTP::TimeoutError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError => e
rescue HTTP::TimeoutError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError, Addressable::URI::InvalidURIError => e
Rails.logger.debug "Error fetching remote #{attachment_name}: #{e}"
nil
end
end
end