updater: do not continue if file extraction failed

Signed-off-by: tretrauit <tretrauit@gmail.com>
This commit is contained in:
tretrauit 2022-12-07 12:55:03 +07:00
parent e55d6cafd6
commit 95f21e6d2a
Signed by: tretrauit
GPG Key ID: CDDE1C97EE305DAF
1 changed files with 2 additions and 1 deletions

View File

@ -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"))