fix(pterodactyl): pylint "fix"
This commit is contained in:
parent
c0289a86fc
commit
457f1da7f4
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
|
||||||
|
|
||||||
async def loop(coginstance: Pterodactyl, websocket: websockets.WebSocketClientProtocol) -> None:
|
async def loop(coginstance: Pterodactyl, websocket: websockets.WebSocketClientProtocol) -> None:
|
||||||
current_status = ''
|
current_status = ''
|
||||||
while True:
|
while True: # pylint: disable=too-many-nested-blocks
|
||||||
message = await websocket.recv()
|
message = await websocket.recv()
|
||||||
if json.loads(message)['event'] in ('token expiring', 'token expired'):
|
if json.loads(message)['event'] in ('token expiring', 'token expired'):
|
||||||
logger.debug("Received token expiring/expired event. Refreshing token.")
|
logger.debug("Received token expiring/expired event. Refreshing token.")
|
||||||
|
|
Loading…
Reference in a new issue