django-councilmatic icon indicating copy to clipboard operation
django-councilmatic copied to clipboard

Show the Person detail view - even with data errors

Open reginafcompton opened this issue 6 years ago • 1 comments

Recently, we had a data issue that raised a Bill DoesNotExist error when arriving at this query. (N.B. The data problem was that a sponsorship pointed to a bill ocd_id, which no longer resided in the data base.)

These types of data problems can, do, and will happen. However, we should not let them bring down the entire Person view (in this case: that of the Mayor). Let's handle this error so that: (1) the Person view still renders, and (2) Councilmatic logs a message to Sentry, warning us of the data trouble.

reginafcompton avatar Mar 06 '18 16:03 reginafcompton

I believe this is the issue in question: https://sentry.io/datamade/chicago-councilmatic/issues/476354390/ (cc @fgregg, as we were looking at this during ops yesterday).

hancush avatar Apr 12 '18 13:04 hancush