Update setup-scripts/blocklist-airtable.py

Co-authored-by: Karol Wypchło <kwypchlo@gmail.com>
This commit is contained in:
firyx 2021-11-10 14:32:08 +01:00 committed by GitHub
parent efeddd6c70
commit c3d3f2b0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ AIRTABLE_TABLE = os.getenv("AIRTABLE_TABLE")
AIRTABLE_FIELD = os.getenv("AIRTABLE_FIELD")
# Check environment variables are defined
for e in [AIRTABLE_API_KEY, AIRTABLE_BASE, AIRTABLE_TABLE, AIRTABLE_FIELD]
if not e:
for value in [AIRTABLE_API_KEY, AIRTABLE_BASE, AIRTABLE_TABLE, AIRTABLE_FIELD]
if not value:
sys.exit("Configuration error: Missing AirTable environment variable.")