From 4c5c6e52747240102459d3d0dbeb054cbef5ea6b Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 31 Jan 2025 11:05:18 +0100 Subject: [PATCH] fix: do not retry on status code 504 (proxy timeout). --- src/sumo/wrapper/_retry_strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sumo/wrapper/_retry_strategy.py b/src/sumo/wrapper/_retry_strategy.py index 7a2d5bc..98012f3 100644 --- a/src/sumo/wrapper/_retry_strategy.py +++ b/src/sumo/wrapper/_retry_strategy.py @@ -30,7 +30,7 @@ def _is_retryable_exception(exception): # Define the conditions for retrying based on HTTP status codes def _is_retryable_status_code(response): - return response.status_code in [502, 503, 504] + return response.status_code in [502, 503] def _return_last_value(retry_state):