From 95f21e6d2add138adb673fffca7930886ae7a4d3 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 7 Dec 2022 12:55:03 +0700 Subject: [PATCH] updater: do not continue if file extraction failed Signed-off-by: tretrauit --- worthless/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worthless/installer.py b/worthless/installer.py index 607fd38..986e775 100644 --- a/worthless/installer.py +++ b/worthless/installer.py @@ -368,7 +368,8 @@ class Installer: print(diff_file) await asyncio.to_thread(archive.extract, diff_file, self.temp_path) except FileExistsError: - pass + print("Failed to extract diff file", diff_file) + return patch_path = self.temp_path.joinpath(diff_file) old_suffix = old_file.suffix old_file = await old_file.rename(old_file.with_suffix(".bak"))