Fix Indeed exceptions on parsing description

This commit is contained in:
Cullen Watson
2023-10-18 14:25:53 -05:00
committed by GitHub
parent 5e71866630
commit f2cc74b7f2
8 changed files with 79 additions and 48 deletions

View File

@@ -84,13 +84,12 @@ def scrape_jobs(
except (LinkedInException, IndeedException, ZipRecruiterException) as lie:
raise lie
except Exception as e:
# unhandled exceptions
if site == Site.LINKEDIN:
raise LinkedInException()
raise LinkedInException(str(e))
if site == Site.INDEED:
raise IndeedException()
raise IndeedException(str(e))
if site == Site.ZIP_RECRUITER:
raise ZipRecruiterException()
raise ZipRecruiterException(str(e))
else:
raise e
return site.value, scraped_data