Skip to content

Commit 8ca9159

Browse files
committed
Fix: get_stored_content should still allow to fetch a message with removing status
1 parent 0fbbfb5 commit 8ca9159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/sdk/client/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ async def get_stored_content(
564564
message, status = await self.get_message(
565565
item_hash=ItemHash(item_hash), with_status=True
566566
)
567-
if status != MessageStatus.PROCESSED:
567+
if status not in [MessageStatus.PROCESSED, MessageStatus.REMOVING]:
568568
resp = f"Invalid message status: {status}"
569569
elif message.type != MessageType.store:
570570
resp = f"Invalid message type: {message.type}"

0 commit comments

Comments
 (0)