Add Pterodactyl cog #19

Merged
cswimr merged 139 commits from pterodactyl into main 2024-03-02 00:07:42 -05:00
Showing only changes of commit 1bbabd495f - Show all commits

View file

@ -40,7 +40,7 @@ class Pterodactyl(commands.Cog):
try: try:
fut.result() fut.result()
except asyncio.CancelledError: except asyncio.CancelledError:
pass logger.info("WebSocket task has been cancelled.")
except Exception as e: # pylint: disable=broad-exception-caught except Exception as e: # pylint: disable=broad-exception-caught
logger.error("WebSocket task has failed: %s", e, exc_info=e) logger.error("WebSocket task has failed: %s", e, exc_info=e)
self.task.cancel() self.task.cancel()