Skip to content

Commit 0bc291e

Browse files
rbikarcrungehottman
andcommitted
Apply suggestions from code review
Co-authored-by: Caleigh Runge-Hottman <crungehottman@users.noreply.github.com>
1 parent 44e47c1 commit 0bc291e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pubtools/pulplib/_impl/client_pulp3/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
self,
5353
url: str,
5454
auth: Optional[tuple] = None,
55-
cert: Optional[str] = None,
55+
cert: Optional[Union[str, Tuple[str, str]]] = None,
5656
verify: bool = True,
5757
timeout: Optional[float] = None,
5858
max_retries: int = 5,

src/pubtools/pulplib/_impl/client_pulp3/retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def should_retry_request(exception: Exception) -> bool:
2626
if isinstance(exception, httpx.HTTPStatusError):
2727
status_code = exception.response.status_code
2828
# Retry on timeout, rate limiting, and server errors
29-
return status_code in (408, 429, 500, 502, 503, 504, 400)
29+
return status_code in (408, 429, 500, 502, 503, 504)
3030

3131
if isinstance(exception, (httpx.TimeoutException, httpx.NetworkError)):
3232
return True

0 commit comments

Comments
 (0)