Compare commits

...

2 Commits

Author SHA1 Message Date
fba2063bce chore: bump to 2.2.21 2023-11-08 16:22:48 +07:00
78df1d242a fix(installer): wrap rename in try/except
So it won't fail I guess, because we failed anyway.
2023-11-08 16:22:30 +07:00
3 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@ README = (HERE / "README.md").read_text()
setup(
name='worthless',
version='2.2.20',
version='2.2.21',
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
url='https://git.froggi.es/tretrauit/worthless-launcher',
license='MIT License',

0
worthless/cli.py Executable file → Normal file
View File

View File

@ -397,7 +397,10 @@ class Installer:
print("Failed to patch {}, reverting and let the in-game updater do the job...".format(
old_file.with_suffix(old_suffix))
)
try:
old_file.rename(old_file.with_suffix(old_suffix))
except Exception:
pass
files.remove(patch_file)
# Limit to 8 process running so it doesn't hang the PC.