From d1bda2dc323357bd9ac28c5295b1cb6079100c72 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Wed, 3 Jan 2024 06:31:57 +0700 Subject: [PATCH] fix(patch): unlink file if auto-repair succeed --- vollerei/common/functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vollerei/common/functions.py b/vollerei/common/functions.py index 27f0360..49cff62 100644 --- a/vollerei/common/functions.py +++ b/vollerei/common/functions.py @@ -75,6 +75,8 @@ def apply_update_archive( except Exception: # Let the game download the file. file.rename(file.with_suffix("")) + else: + file.unlink() else: # Let the game download the file. file.rename(file.with_suffix(""))