mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-24 10:54:02 +08:00
afws_client: fix JSON parsing in read_json method
This commit is contained in:
parent
11c5f537bb
commit
378d962edb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user