Skip to content

Commit 04e6b62

Browse files
committed
Remove old exceptions
1 parent c048dab commit 04e6b62

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/typesense/api_call.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def perform_request(method, endpoint, headers = {}, options = {})
9191

9292
exception_message = (parsed_response && parsed_response['message']) || 'Error'
9393
raise custom_exception_klass_for(response), exception_message
94-
rescue SocketError, EOFError,
95-
Errno::EINVAL, Errno::ENETDOWN, Errno::ENETUNREACH, Errno::ENETRESET, Errno::ECONNABORTED, Errno::ECONNRESET,
94+
rescue Errno::EINVAL, Errno::ENETDOWN, Errno::ENETUNREACH, Errno::ENETRESET, Errno::ECONNABORTED, Errno::ECONNRESET,
9695
Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTDOWN, Errno::EHOSTUNREACH,
9796
Typesense::Error::TimeoutError, Typesense::Error::ServerError, Typesense::Error::HTTPStatus0Error => e
9897
# Rescue network layer exceptions and HTTP 5xx errors, so the loop can continue.

0 commit comments

Comments
 (0)