From 88c77b4aa58bb21527c5d96f9c0279fda359fc18 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Mar 2024 15:44:26 -0500 Subject: [PATCH] fix(pterodactyl): fixed error if base_url ends in `/` --- pterodactyl/websocket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 3fb0750..7c5f605 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -17,6 +17,7 @@ from pterodactyl.pterodactyl import Pterodactyl async def establish_websocket_connection(coginstance: Pterodactyl) -> None: base_url = await config.base_url() + base_url = base_url[:-1] if base_url.endswith('/') else base_url logger.info("Establishing WebSocket connection")