IFRCGo / go-api

MIT License
14 stars 6 forks source link

Fix Fdrs sentry issue on cronjob #2226

Closed susilnem closed 4 months ago

susilnem commented 4 months ago

Addresses

fdrs_data_fetched_year = max(int(item["year"]) for item in fdrs_data.values())
TypeError: 'NoneType' object is not subscriptable

Changes

Checklist

Things that should succeed before merging.

Release

If there is a version update, make sure to tag the repository with the latest version.

thenav56 commented 4 months ago

Hey @szabozoltan69, please review and merge when you have time. This will fix the FDRS Sentry issue, the one you mentioned on the teams.

szabozoltan69 commented 4 months ago

Merged, deployed to Staging. Thanks for the quick fix!