From 1bbabd495f1990bb7aad2c0f6d3407341bc47570 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Mar 2024 13:14:55 -0500 Subject: [PATCH] fix(pterodactyl): added logging for if the WebSocket task is cancelled --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 11a449a..19dc3ce 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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()