Skip to content

Commit d4276e4

Browse files
committed
fix(client): parse err on GetInfoRspBody
1 parent 19fdd30 commit d4276e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lagrange/client/client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ async def get_user_info(
520520
else:
521521
raise TypeError(userid[0])
522522

523-
rsp = GetInfoFromUidRsp.decode((await self.send_oidb_svc(0xFE1, sc, req)).data)
523+
rsp = GetInfoFromUidRsp.decode(
524+
(await self.send_oidb_svc(0xFE1, sc, req, is_uid=True if sc == 2 else False)).data
525+
)
524526
if not rsp.body:
525527
raise AssertionError("Empty response")
526528
elif len(rsp.body) == 1:

0 commit comments

Comments
 (0)