From 379ba26478da0e292f80fd240ab8c5250409dd7e Mon Sep 17 00:00:00 2001 From: kaniini Date: Sun, 18 Nov 2018 21:29:10 +0000 Subject: [PATCH] relay: catch 202s --- relay/actor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/relay/actor.py b/relay/actor.py index 8b55e74..2d4b5b1 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -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)