Compare commits

..

2 commits

Author SHA1 Message Date
monosans 73d2cbe382
Merge ec31a268ee into 719f29fb29 2023-10-07 10:38:29 +00:00
monosans ec31a268ee
Refactor file operations 2023-10-07 13:38:18 +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