Skip to content

Commit 53c8a24

Browse files
committed
Replace SlowRetrievalError with DownloadError
SlowRetrievalError requires average_download_speed as an argument which is not calculated in RequestsFetcher. Signed-off-by: Teodora Sechkova <[email protected]>
1 parent a94479b commit 53c8a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuf/ngclient/_internal/requests_fetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _chunks(
141141
)
142142

143143
except urllib3.exceptions.ReadTimeoutError as e:
144-
raise exceptions.SlowRetrievalError(str(e))
144+
raise exceptions.DownloadError from e
145145

146146
finally:
147147
response.close()

0 commit comments

Comments
 (0)