better error handling
This commit is contained in:
parent
0d8b50e5a2
commit
937fe052b3
|
@ -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']]
|
||||
|
|
Reference in New Issue