mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
fix: Handle more rest client exceptions (#2930)
This commit is contained in:
@@ -2,7 +2,7 @@ module ExceptionList
|
|||||||
REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
|
REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
|
||||||
RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError,
|
RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError,
|
||||||
RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout,
|
RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout,
|
||||||
RestClient::MovedPermanently, SocketError].freeze
|
RestClient::MovedPermanently, RestClient::ServiceUnavailable, Errno::ECONNREFUSED, SocketError].freeze
|
||||||
SMTP_EXCEPTIONS = [
|
SMTP_EXCEPTIONS = [
|
||||||
Net::SMTPSyntaxError
|
Net::SMTPSyntaxError
|
||||||
].freeze
|
].freeze
|
||||||
|
|||||||
Reference in New Issue
Block a user