about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus-honeypot@unterwaditzer.net>2023-01-23 13:05:54 +0100
committerGitHub <noreply@github.com>2023-01-23 13:05:54 +0100
commitf2a6e71bb65e79f7c310ea00238124aac3dcc1ed (patch)
treec60c7991a69daca98333294313fc6dde558b8e2d /app/services
parent448be26b34c965fcae65eb4c5227b35d97120537 (diff)
Suppress AddressFamilyError in link verification (#23204)
* Suppress AddressFamilyError

* clarify comment
Diffstat (limited to 'app/services')
-rw-r--r--app/services/verify_link_service.rb2
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