From e4dc803a07d72fa7388b7996d0f0ca55c452ecb1 Mon Sep 17 00:00:00 2001 From: Eliseu Gaspar Date: Fri, 10 Nov 2023 09:24:47 +0100 Subject: [PATCH] fix issue number 91 --- src/mega/mega.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mega/mega.py b/src/mega/mega.py index 906b0db..a87bd1e 100644 --- a/src/mega/mega.py +++ b/src/mega/mega.py @@ -716,6 +716,7 @@ def _download_file(self, chunk = input_file.read(chunk_size) chunk = aes.decrypt(chunk) temp_output_file.write(chunk) + temp_output_file.close() encryptor = AES.new(k_str, AES.MODE_CBC, iv_str) for i in range(0, len(chunk) - 16, 16):