From 0eb54dc0b090fef23c9d7fbd8c405761637dbc0c Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Mon, 20 May 2024 16:36:49 +0200 Subject: [PATCH] feat: return None if fetch_statuses failed --- threads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threads.py b/threads.py index f76f107..eef248d 100755 --- a/threads.py +++ b/threads.py @@ -90,7 +90,7 @@ async def fetch_statuses(): statuses = await asyncio.gather(*(get(url, session) for url in urls)) return statuses except: - return [] + return None def fetch_thread(id): status = requests.get(server + '/api/v1/statuses/' + id ).json()