incorrect usage of async await
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
This commit is contained in:
parent
ae07f1760a
commit
1cce089cc3
@ -34,7 +34,7 @@ class ConsoleCog(commands.Cog):
|
|||||||
@tasks.loop(seconds=3)
|
@tasks.loop(seconds=3)
|
||||||
async def listen_for_changes(self):
|
async def listen_for_changes(self):
|
||||||
log.debug("listening for changes")
|
log.debug("listening for changes")
|
||||||
async for line in self.file_handler.read():
|
for line in await self.file_handler.read():
|
||||||
await self.process_console_line(line)
|
await self.process_console_line(line)
|
||||||
|
|
||||||
async def process_console_line(self, line: str):
|
async def process_console_line(self, line: str):
|
||||||
|
Reference in New Issue
Block a user