Skip to content

Commit

Permalink
fix:key error
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Jul 21, 2024
1 parent 8678b0b commit 0173b74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-jobspy"
version = "1.1.60"
version = "1.1.61"
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
homepage = "https://github.com/Bunsly/JobSpy"
Expand Down
4 changes: 3 additions & 1 deletion src/jobspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def convert_to_annual(job_data: dict):
job_data["salary_source"] = SalarySource.DESCRIPTION.value

job_data["salary_source"] = (
job_data["salary_source"] if job_data["min_amount"] else None
job_data["salary_source"]
if "min_amount" in job_data and job_data["min_amount"]
else None
)
job_df = pd.DataFrame([job_data])
jobs_dfs.append(job_df)
Expand Down

0 comments on commit 0173b74

Please sign in to comment.