Skip to content

Commit 0279fc1

Browse files
hemang1404ved015
andcommitted
fix linting issues
Co-authored-by: Vedant Mahajan <[email protected]>
1 parent 3e68cba commit 0279fc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tuf/ngclient/urllib3_fetcher.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def __init__(
5151
if app_user_agent is not None:
5252
ua = f"{app_user_agent} {ua}"
5353

54-
# Configure retry strategy: retry on read timeouts and connection errors
55-
# This enables retries for streaming failures, not just initial connection
54+
# Configure retry strategy: retry on read timeouts and
55+
# connection errors. This enables retries for streaming failures,
56+
# not just initial connection.
5657
retry_strategy = Retry(
5758
total=3,
5859
read=3,
@@ -175,4 +176,4 @@ def download_bytes(self, url: str, max_length: int) -> bytes:
175176

176177
if last_exception:
177178
raise last_exception
178-
raise exceptions.DownloadError(f"Failed to download {url}")
179+
raise exceptions.DownloadError(f"Failed to download {url}")

0 commit comments

Comments
 (0)