fix(pterodactyl): fix an attributeerror
Some checks are pending
Actions / Lint Code (Ruff & Pylint) (push) Waiting to run
Actions / Build Documentation (MkDocs) (push) Waiting to run

This commit is contained in:
cswimr 2025-02-21 10:03:07 -06:00
parent 48c6289b2d
commit 6bd2a2cc68
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -153,7 +153,7 @@ async def retrieve_websocket_credentials(coginstance: Pterodactyl) -> dict:
client = PterodactylClient(base_url, api_key).client
coginstance.client = client
websocket_credentials: dict[str, Any] = client.servers.get_websocket(server_id).json()
websocket_credentials: dict[str, Any] = client.servers.get_websocket(server_id)
if not websocket_credentials:
coginstance.maybe_cancel_task()
raise ValueError("Failed to retrieve websocket credentials. Please ensure the API details are correctly configured.")