fix(installer): wrap rename in try/except
So it won't fail I guess, because we failed anyway.
This commit is contained in:
parent
f1eb1fe2c6
commit
78df1d242a
0
worthless/cli.py
Executable file → Normal file
0
worthless/cli.py
Executable file → Normal 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))
|
||||
)
|
||||
old_file.rename(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.
|
||||
|
Loading…
Reference in New Issue
Block a user