relay: catch 202s
This commit is contained in:
parent
db9597c9d9
commit
379ba26478
|
@ -95,6 +95,8 @@ async def push_message_to_actor(actor, message, our_key_id):
|
|||
|
||||
async with aiohttp.ClientSession(trace_configs=[http_debug()]) as session:
|
||||
async with session.post(inbox, data=data, headers=headers) as resp:
|
||||
if resp.status == 202:
|
||||
return
|
||||
resp_payload = await resp.text()
|
||||
logging.debug('%r >> resp %r', inbox, resp_payload)
|
||||
|
||||
|
|
Loading…
Reference in New Issue