Skip to content

Commit 3424e3d

Browse files
committed
Add httpx.ProtocolError to list of errors that warrant a retry.
1 parent 6aaa097 commit 3424e3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/sumo/wrapper/_retry_strategy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def _log_retry_info(retry_state):
1919
def _is_retryable_exception(exception):
2020
return isinstance(
2121
exception,
22-
(httpx.TimeoutException, httpx.NetworkError, httpx.ProxyError),
22+
(httpx.TimeoutException, httpx.NetworkError,
23+
httpx.ProtocolError, httpx.ProxyError),
2324
)
2425

2526

0 commit comments

Comments
 (0)