uchicago-capp-30320 / CivicLens

Putting the public back in public commenting
https://civic-lens.org
GNU Affero General Public License v3.0
2 stars 1 forks source link

add try/except handling in access_api_data #173

Open andrewjtdunn opened 6 months ago

andrewjtdunn commented 6 months ago

We haven't added much error handling here and we probably should given we want cron jobs to complete without error. Better to catch errors and flag in logs than to have the whole job stop.

eg: line 188 -- r.raise_for_status(), line 263 -- raise RuntimeError(f"Unrecoverable error; {r_json}")