fix(pterodactyl): added logging for if the WebSocket task is cancelled

This commit is contained in:
Seaswimmer 2024-03-01 13:14:55 -05:00
parent 8cbad26e1d
commit 1bbabd495f
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

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