Skip to content

Commit

Permalink
[UPDATE] handle multiple exceptions on resolve_company
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiirh committed May 11, 2024
1 parent 16f4659 commit 124e45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def process_jobs(account_pk: int, job_pks: list[int]):

try:
job.company = resolve_company(job_data)
except NotValidCompanyError:
except (NotValidCompanyError, AttributeError, KeyError):
job.delete()
continue

Expand Down

0 comments on commit 124e45f

Please sign in to comment.