diff options
Diffstat (limited to 'ami.py')
| -rwxr-xr-x | ami.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']}", |