relay: catch 202s

This commit is contained in:
kaniini 2018-11-18 21:29:10 +00:00
parent db9597c9d9
commit 379ba26478
1 changed files with 2 additions and 0 deletions

View File

@ -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)