From 89facc679f369f1f54941fba1f3f4eb919948fa6 Mon Sep 17 00:00:00 2001 From: Teodora Sechkova Date: Tue, 20 Jul 2021 12:58:27 +0300 Subject: [PATCH] Replace SlowRetrievalError with DownloadError SlowRetrievalError requires average_download_speed as am argument which is not calculated in RequestsFetcher. Signed-off-by: Teodora Sechkova --- tuf/ngclient/_internal/requests_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuf/ngclient/_internal/requests_fetcher.py b/tuf/ngclient/_internal/requests_fetcher.py index d2f24ef25d..b98a707ab7 100644 --- a/tuf/ngclient/_internal/requests_fetcher.py +++ b/tuf/ngclient/_internal/requests_fetcher.py @@ -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()