From: Yamagishi Kazutoshi Date: Wed, 9 May 2018 06:39:08 +0000 (+0900) Subject: Rescue Mastodon::LengthValidationError in FetchLinkCardService (#7424) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=d2ee48977c8b663465504b44ae3d648cadd29aab;p=mastodon.git Rescue Mastodon::LengthValidationError in FetchLinkCardService (#7424) --- diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 77d4aa538..f9b1b2f0c 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -27,7 +27,7 @@ class FetchLinkCardService < BaseService end attach_card if @card&.persisted? - rescue HTTP::Error, Addressable::URI::InvalidURIError => e + rescue HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::LengthValidationError => e Rails.logger.debug "Error fetching link #{@url}: #{e}" nil end