From 4623aaf5b6376dac83f87014712dba37f2098e77 Mon Sep 17 00:00:00 2001 From: kaniini Date: Sun, 18 Nov 2018 22:09:08 +0000 Subject: [PATCH] relay: status, not status_code --- relay/remote_actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/remote_actor.py b/relay/remote_actor.py index 6b33a40..faa0ced 100644 --- a/relay/remote_actor.py +++ b/relay/remote_actor.py @@ -19,7 +19,7 @@ async def fetch_actor(uri, force=False): try: async with aiohttp.ClientSession(trace_configs=[http_debug()]) as session: async with session.get(uri, headers={'Accept': 'application/activity+json'}) as resp: - if resp.status_code != 200: + if resp.status != 200: return None ACTORS[uri] = (await resp.json(encoding='utf-8', content_type=None)) return ACTORS[uri]