From 378d962edb37a7c2a94e963251822246be009b0e Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Fri, 26 Jul 2024 10:55:35 +0800 Subject: [PATCH] afws_client: fix JSON parsing in read_json method --- artiq/frontend/afws_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/afws_client.py b/artiq/frontend/afws_client.py index 540abc15e..020089eaa 100755 --- a/artiq/frontend/afws_client.py +++ b/artiq/frontend/afws_client.py @@ -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)