googleinterns / step190-2020

gVote is a voter information platform that walks users through steps in the U.S. voting procedure by helping users register to vote, listing relevant upcoming elections, and providing ballot information and nearby polling sites, so that users are prepared to vote on election day.
https://contrib-geo-step-2020.appspot.com
6 stars 3 forks source link

Catch JSONException when referendumSubtitle does not exist #110

Closed gianelgado12 closed 4 years ago

gianelgado12 commented 4 years ago

Deployed site had issues where a 500 error was thrown when the referendumSubtitle field didn't exist since JSONObject.getString() threw an uncaught JSONException. Fixed issue by catching the JSONException and subsequently filling in the description field in Referendum with an empty string.

rogerlaucorp commented 4 years ago

Good comment overview.