summaryrefslogtreecommitdiff
path: root/ami.py
diff options
context:
space:
mode:
Diffstat (limited to 'ami.py')
-rwxr-xr-xami.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ami.py b/ami.py
index 334abbc..45b7605 100755
--- a/ami.py
+++ b/ami.py
@@ -196,7 +196,7 @@ def print_job_table():
for city in (environ.get("TARGET_CITIES") or "").split(","):
fixed_city = city.strip()
- if job["city"].lower() == fixed_city.lower():
+ if job["city"] is not None and job["city"].lower() == fixed_city.lower():
notify(
f"Found job in {fixed_city}",
f"Job ID: {job['jobId']}\nTitle: {job['jobTitle']}\nCity: {job['city']}\nState: {job['state']}\nPay Rate: ${job['totalPayRateMin']} to ${job['totalPayRateMax']} {job['currencyCode']}\nEmployment Type: {job['employmentTypeL10N']}\nDistance: {job['distanceL10N']}",