fix(pterodactyl): added logging for if the WebSocket task is cancelled
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 20s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-03-01 13:14:55 -05:00
parent 8cbad26e1d
commit 1bbabd495f
Signed by: 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()