From 937fe052b38aa9b92029f67e8fda4df6d0490b71 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 1 Mar 2021 17:20:42 +0100 Subject: [PATCH] better error handling --- 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 b91ab3a8..99b40694 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -18,7 +18,7 @@ async def block_skylinks_from_airtable(): ) if airtable.status_code != 200: - message = "Airtable blocklist integration responded with code " + str(response.status_code) + ": " + (response.text or "empty response") + message = "Airtable blocklist integration responded with code " + str(airtable.status_code) + ": " + (airtable.text or "empty response") return print(message) and await send_msg(client, message, force_notify=False) skylinks = [entry['fields'][AIRTABLE_FIELD] for entry in airtable.json()['records']]