forked from cswimr/SeaCogs
fix(pterodactyl): added logging for if the WebSocket task is cancelled
This commit is contained in:
parent
8cbad26e1d
commit
1bbabd495f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue