diff options
author | Markus Unterwaditzer <markus-honeypot@unterwaditzer.net> | 2023-01-23 13:05:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 13:05:54 +0100 |
commit | f2a6e71bb65e79f7c310ea00238124aac3dcc1ed (patch) | |
tree | c60c7991a69daca98333294313fc6dde558b8e2d /app | |
parent | 448be26b34c965fcae65eb4c5227b35d97120537 (diff) |
Suppress AddressFamilyError in link verification (#23204)
* Suppress AddressFamilyError * clarify comment
Diffstat (limited to 'app')
-rw-r--r-- | app/services/verify_link_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/verify_link_service.rb b/app/services/verify_link_service.rb index d049b52d1..9708cdd73 100644 --- a/app/services/verify_link_service.rb +++ b/app/services/verify_link_service.rb @@ -10,7 +10,7 @@ class VerifyLinkService < BaseService return unless link_back_present? field.mark_verified! - rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e + rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError, IPAddr::AddressFamilyError => e Rails.logger.debug "Error fetching link #{@url}: #{e}" nil end |