Skip to content

Commit

Permalink
add exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hanniabu committed May 24, 2024
1 parent 4e7af49 commit b0edf2b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions _scripts/job_listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ def update_job_listings():
raw_data = get_listing_data()
processed_data = process_listing_data(raw_data)
save_listing_data(processed_data)
except:
error = f"Bad response"
utilities.log(f"{error}: {script_id}")
utilities.report_error(error, context=f"{script_id}__update_job_listings")

# except:
except Exception as e:
print(e)
# error = f"Bad response"
# utilities.log(f"{error}: {script_id}")
# utilities.report_error(error, context=f"{script_id}__update_job_listings")

0 comments on commit b0edf2b

Please sign in to comment.