From cccc941e26f7de9bd776875f6a36b7d71d0ed1fd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 21:38:54 -0500 Subject: [PATCH] fix(pterodactyl): restart the websocket task if it fails --- pterodactyl/pterodactyl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 4b53973..ff9d2e5 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -172,6 +172,7 @@ class Pterodactyl(commands.Cog): pass except Exception as e: self.logger.error("WebSocket task has failed: %s", e, exc_info=e) + self.task = self.get_task() async def cog_load(self): self.task = self.get_task()