Merge remote-tracking branch 'origin/master' into accounts
This commit is contained in:
commit
10aa75ba49
|
@ -36,7 +36,7 @@ async def block_skylinks_from_airtable():
|
||||||
return print(message) or await send_msg(client, message, force_notify=False)
|
return print(message) or await send_msg(client, message, force_notify=False)
|
||||||
|
|
||||||
data = response.json()
|
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:
|
if len(skylinks) == 0:
|
||||||
return print("Airtable returned 0 skylinks - make sure your configuration is correct")
|
return print("Airtable returned 0 skylinks - make sure your configuration is correct")
|
||||||
|
|
Reference in New Issue