fix drive_list read on startup

close #1798
This commit is contained in:
Anas Tayyar 2025-01-03 22:31:14 +02:00 committed by GitHub
parent a86669be78
commit 8fb888d57b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,7 @@ async def update_variables():
if await aiopath.exists("list_drives.txt"):
async with aiopen("list_drives.txt", "r+") as f:
lines = f.readlines()
lines = await f.readlines()
for line in lines:
temp = line.strip().split()
drives_ids.append(temp[1])