return after FileNotFoundError and log line output
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
32b51fcd1d
commit
e6ddf290ca
@ -36,6 +36,7 @@ class ConsoleCog(commands.Cog):
|
||||
file_reader = LogFileReader(CONSOLE_FILE_PATH)
|
||||
except FileNotFoundError:
|
||||
self.listen_for_changes.cancel()
|
||||
return
|
||||
|
||||
async for line in file_reader.read():
|
||||
await self.process_console_line(line)
|
||||
@ -74,6 +75,7 @@ class ConsoleCog(commands.Cog):
|
||||
"""
|
||||
Determine how to handle the given line from the server console.
|
||||
"""
|
||||
log.debug("processing console line: %s", line)
|
||||
|
||||
if "CheckModsNeedUpdate: Mods need update" in line:
|
||||
await self.handle_mod_needs_update(line)
|
||||
|
Reference in New Issue
Block a user