From 06d89163414aeddba5d5486a8db6ae5371d1173a Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 31 Aug 2021 19:45:11 +0530 Subject: [PATCH] fix: Handle more rest client exceptions (#2930) --- lib/exception_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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