fix(pterodactyl): pylint "fix"
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 18s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-02-29 23:44:28 -05:00
parent c0289a86fc
commit 457f1da7f4
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -34,7 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
async def loop(coginstance: Pterodactyl, websocket: websockets.WebSocketClientProtocol) -> None:
current_status = ''
while True:
while True: # pylint: disable=too-many-nested-blocks
message = await websocket.recv()
if json.loads(message)['event'] in ('token expiring', 'token expired'):
logger.debug("Received token expiring/expired event. Refreshing token.")