Skip to content

Commit

Permalink
Replace SlowRetrievalError with DownloadError
Browse files Browse the repository at this point in the history
SlowRetrievalError requires average_download_speed as
am argument which is not calculated in RequestsFetcher.

Signed-off-by: Teodora Sechkova <[email protected]>
  • Loading branch information
sechkova committed Jul 20, 2021
1 parent cdd5828 commit 89facc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuf/ngclient/_internal/requests_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _chunks(
)

except urllib3.exceptions.ReadTimeoutError as e:
raise exceptions.SlowRetrievalError(str(e))
raise exceptions.DownloadError from e

finally:
response.close()
Expand Down

0 comments on commit 89facc6

Please sign in to comment.