From 3a72a2e0947771da69507576b3f20fa342596f5a Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Wed, 8 Oct 2025 13:51:32 -0500 Subject: [PATCH] Possibly fix failing to rescue from timeouts --- lib/api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api.rb b/lib/api.rb index 320dea7..77f390d 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -91,7 +91,7 @@ class W3DHub retry_interval: 1, retry_errors: [Excon::Error::Socket, Excon::Error::HTTPStatus] # Don't retry on timeout ) - rescue Excon::Errors::Timeout => e + rescue Excon::Error::Timeout => e logger.error(LOG_TAG) { "Connection to \"#{url}\" timed out after: #{API_TIMEOUT} seconds" } DummyResponse.new(e) @@ -135,7 +135,7 @@ class W3DHub retry_interval: 1, retry_errors: [Excon::Error::Socket, Excon::Error::HTTPStatus] # Don't retry on timeout ) - rescue Excon::Errors::Timeout => e + rescue Excon::Error::Timeout => e logger.error(LOG_TAG) { "Connection to \"#{url}\" timed out after: #{API_TIMEOUT} seconds" } DummyResponse.new(e)