fix(pterodactyl): pylint "fix"

This commit is contained in:
SeaswimmerTheFsh 2024-02-29 23:44:28 -05:00
parent c0289a86fc
commit 457f1da7f4
Signed by untrusted user: 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.")