Skip to content

Commit abdb760

Browse files
authored
Fix get_message_status #186 (#187)
1 parent 4242aa3 commit abdb760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/aleph/sdk/client/http.py

+2
Original file line numberDiff line numberDiff line change
@@ -467,3 +467,5 @@ async def get_message_status(self, item_hash: str) -> MessageStatus:
467467
if resp.status == HTTPNotFound.status_code:
468468
raise MessageNotFoundError(f"No such hash {item_hash}")
469469
resp.raise_for_status()
470+
result = await resp.json()
471+
return MessageStatus(result["status"])

0 commit comments

Comments
 (0)