diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-10 18:59:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 18:59:28 +0200 |
commit | 5d3feed191bcbe2769512119752b426108152fe9 (patch) | |
tree | b36bc69823e5a16250bb9f72d388498737d6725a /app/services/fetch_link_card_service.rb | |
parent | d04c584159fdad36d7713718c4ba0b3b42cd27a9 (diff) |
Refactor fetching of remote resources (#11251)
Diffstat (limited to 'app/services/fetch_link_card_service.rb')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 75fbd0e8c..4e75c370f 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -29,7 +29,7 @@ class FetchLinkCardService < BaseService end attach_card if @card&.persisted? - rescue HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e + rescue HTTP::Error, OpenSSL::SSL::SSLError, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e Rails.logger.debug "Error fetching link #{@url}: #{e}" nil end |