afws_client: fix JSON parsing in read_json method

This commit is contained in:
Florian Agbuya 2024-07-26 10:55:35 +08:00 committed by Sébastien Bourdeauducq
parent 11c5f537bb
commit 378d962edb
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Client:
return (await self.reader.readline()).decode("ascii").split()
async def read_json(self):
return json.loads(await self.reader.readline().decode("ascii"))
return json.loads((await self.reader.readline()).decode("ascii"))
async def login(self, username, password):
await self.send_command("LOGIN", username, password)