fix(pterodactyl): restart the websocket task if it fails
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-02-29 21:38:54 -05:00
parent 0aa17e8807
commit cccc941e26
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -172,6 +172,7 @@ class Pterodactyl(commands.Cog):
pass pass
except Exception as e: except Exception as e:
self.logger.error("WebSocket task has failed: %s", e, exc_info=e) self.logger.error("WebSocket task has failed: %s", e, exc_info=e)
self.task = self.get_task()
async def cog_load(self): async def cog_load(self):
self.task = self.get_task() self.task = self.get_task()