From cd060340dbd2723840f9d4153b02ec665e110a5b Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Wed, 5 Jun 2024 10:18:08 +0000 Subject: [PATCH] minor update --- src/otaclient/app/ota_client.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/otaclient/app/ota_client.py b/src/otaclient/app/ota_client.py index 8b689958d..5340f55f0 100644 --- a/src/otaclient/app/ota_client.py +++ b/src/otaclient/app/ota_client.py @@ -166,17 +166,13 @@ def _download_file( _local_copy = self._ota_tmp_on_standby / _fhash_str entry_url, compression_alg = self._otameta.get_download_url(entry) - try: - cur_stat.download_errors, _, _ = self._downloader.download( - entry_url, - _local_copy, - digest=_fhash_str, - size=entry.size, - compression_alg=compression_alg, - ) - except Exception as e: - logger.warning(f"failed to download {entry=}: {e!r}") - raise + cur_stat.download_errors, _, _ = self._downloader.download( + entry_url, + _local_copy, + digest=_fhash_str, + size=entry.size, + compression_alg=compression_alg, + ) cur_stat.size = _local_copy.stat().st_size return cur_stat