refactor(jobs): use JobResponse model for bad requests

pull/12/head
Cullen Watson 2023-07-10 18:19:37 -05:00
parent a0957f1d5b
commit bdc7ce1df2
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class LinkedInScraper(Scraper):
self.url = f"{self.url}/{scraper_input.search_term}-jobs"
response = requests.get(self.url, params=params)
response.status_code = 300
if response.status_code != status.HTTP_200_OK:
return JobResponse(
success=False,