incorrect usage of async await
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s

This commit is contained in:
Corban-Lee Jones 2024-12-08 00:53:01 +00:00
parent ae07f1760a
commit 1cce089cc3

View File

@ -34,7 +34,7 @@ class ConsoleCog(commands.Cog):
@tasks.loop(seconds=3)
async def listen_for_changes(self):
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)
async def process_console_line(self, line: str):