mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:53:58 +01:00
Compare commits
2 commits
87345f94d7
...
73d2cbe382
Author | SHA1 | Date | |
---|---|---|---|
73d2cbe382 | |||
ec31a268ee |
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue