diff --git a/lib/exceptions.rb b/lib/exceptions.rb index 7cbcdbc35b1..1709157f0d1 100644 --- a/lib/exceptions.rb +++ b/lib/exceptions.rb @@ -38,14 +38,14 @@ module Mastodon HTTP_CONNECTION_ERRORS = [ Addressable::URI::InvalidURIError, + HostValidationError, HTTP::ConnectionError, HTTP::Error, HTTP::TimeoutError, IPAddr::AddressFamilyError, - Mastodon::HostValidationError, - Mastodon::LengthValidationError, - Mastodon::PrivateNetworkAddressError, - Mastodon::UnexpectedResponseError, + LengthValidationError, OpenSSL::SSL::SSLError, + PrivateNetworkAddressError, + UnexpectedResponseError, ].freeze end