summaryrefslogtreecommitdiffstats
path: root/eos_downloader
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 20:09:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 20:09:39 +0000
commit785d2db299e226cacc5e89783dea96dc04092357 (patch)
tree7cd3232a6c0518af363291e312065bff5e77dd69 /eos_downloader
parentAdding upstream version 0.10.1. (diff)
downloadeos-downloader-f7b312f9e470985817379cfb71b75a068dcc7c71.tar.xz
eos-downloader-f7b312f9e470985817379cfb71b75a068dcc7c71.zip
Adding upstream version 0.10.2.upstream/0.10.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'eos_downloader')
-rw-r--r--eos_downloader/object_downloader.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/eos_downloader/object_downloader.py b/eos_downloader/object_downloader.py
index c107fee..3a22312 100644
--- a/eos_downloader/object_downloader.py
+++ b/eos_downloader/object_downloader.py
@@ -494,12 +494,12 @@ class ObjectDownloader:
hash_result = self._compute_hash_sh512sum(
file=file_downloaded, hash_expected=hash_expected
)
- if not hash_result:
- logger.error("Downloaded file is corrupted, please check your connection")
- console.print(
- "❌ Downloaded file is corrupted, please check your connection"
- )
- return False
+ if not hash_result:
+ logger.error("Downloaded file is corrupted, please check your connection")
+ console.print(
+ "❌ Downloaded file is corrupted, please check your connection"
+ )
+ return False
logger.info("Downloaded file is correct.")
console.print("✅ Downloaded file is correct.")
return True