Compare commits

..

2 commits

Author SHA1 Message Date
monosans 87345f94d7
Merge 4144fd1810 into 719f29fb29 2023-10-07 06:22:00 +00:00
monosans 4144fd1810
Refactor file operations 2023-10-07 09:21:52 +03:00

View file

@ -76,7 +76,7 @@ class KeyManager:
for filename in await aiofiles.os.listdir(os.path.join('api', 'secret')): for filename in await aiofiles.os.listdir(os.path.join('api', 'secret')):
if filename.endswith('.txt'): if filename.endswith('.txt'):
async with aiofiles.open(os.path.join('api', 'secret', filename)) as f: async with aiofiles.open(os.path.join('api', 'secret', 'filename')) as f:
async for line in f: async for line in f:
if not line.strip(): if not line.strip():
continue continue