Update setup-scripts/blocklist-airtable.py
Co-authored-by: Karol Wypchło <kwypchlo@gmail.com>
This commit is contained in:
parent
efeddd6c70
commit
c3d3f2b0e5
|
@ -21,8 +21,8 @@ AIRTABLE_TABLE = os.getenv("AIRTABLE_TABLE")
|
||||||
AIRTABLE_FIELD = os.getenv("AIRTABLE_FIELD")
|
AIRTABLE_FIELD = os.getenv("AIRTABLE_FIELD")
|
||||||
|
|
||||||
# Check environment variables are defined
|
# Check environment variables are defined
|
||||||
for e in [AIRTABLE_API_KEY, AIRTABLE_BASE, AIRTABLE_TABLE, AIRTABLE_FIELD]
|
for value in [AIRTABLE_API_KEY, AIRTABLE_BASE, AIRTABLE_TABLE, AIRTABLE_FIELD]
|
||||||
if not e:
|
if not value:
|
||||||
sys.exit("Configuration error: Missing AirTable environment variable.")
|
sys.exit("Configuration error: Missing AirTable environment variable.")
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue