Skip to content

Commit

Permalink
fix: Handle more rest client exceptions (#2930)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhsin-k committed Aug 31, 2021
1 parent 6563ccc commit 06d8916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exception_list.rb
Expand Up @@ -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
Expand Down

0 comments on commit 06d8916

Please sign in to comment.