From 6d6ec61102657e4eb12f819164a00fccb72ae56c Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 19 Oct 2021 12:24:34 +0200 Subject: [PATCH] Apply suggestions from code review --- tljh/conda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh/conda.py b/tljh/conda.py index 558c218..1dbeb55 100644 --- a/tljh/conda.py +++ b/tljh/conda.py @@ -52,7 +52,7 @@ def download_miniconda_installer(installer_url, sha256sum): with tempfile.NamedTemporaryFile('wb') as f: f.write(requests.get(installer_url).content) f.flush() - os.fsync() + os.fsync(f) if sha256_file(f.name) != sha256sum: raise Exception('sha256sum hash mismatch! Downloaded file corrupted')