From e534aaebca2b81963a7f1f129a3174a2fb495924 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 2 Mar 2021 17:33:15 +0100 Subject: [PATCH] fix empty Link --- setup-scripts/blocklist-airtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/blocklist-airtable.py b/setup-scripts/blocklist-airtable.py index 64dbb9ac..aa818886 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -36,7 +36,7 @@ async def block_skylinks_from_airtable(): return print(message) or await send_msg(client, message, force_notify=False) data = response.json() - skylinks = skylinks + [entry["fields"][AIRTABLE_FIELD] for entry in data["records"]] + skylinks = skylinks + [entry["fields"].get(AIRTABLE_FIELD, "") for entry in data["records"]] if len(skylinks) == 0: return print("Airtable returned 0 skylinks - make sure your configuration is correct")