fix: do not await is_file()
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user