fix: do not await is_file()

This commit is contained in:
tretrauit 2022-09-28 12:26:54 +07:00
parent 184e96fa2d
commit e3045f5150
Signed by: tretrauit
GPG Key ID: CDDE1C97EE305DAF
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -349,7 +349,7 @@ class Installer:
async def extract_and_patch(old_file, diff_file):
diff_path = self.temp_path.joinpath(diff_file)
if await diff_path.is_file():
if diff_path.is_file():
await diff_path.unlink(missing_ok=True)
await asyncio.to_thread(archive.extract, diff_file, self.temp_path)
patch_path = self.temp_path.joinpath(diff_file)