diff --git a/lib/exception_list.rb b/lib/exception_list.rb index b0703626d..00b3e26a7 100644 --- a/lib/exception_list.rb +++ b/lib/exception_list.rb @@ -2,7 +2,7 @@ module ExceptionList REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest, RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError, RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout, - RestClient::MovedPermanently, SocketError].freeze + RestClient::MovedPermanently, RestClient::ServiceUnavailable, Errno::ECONNREFUSED, SocketError].freeze SMTP_EXCEPTIONS = [ Net::SMTPSyntaxError ].freeze