govtrack.us-web
govtrack.us-web copied to clipboard
Fall back to ugly bill text if CongressXML fails
I don't have any live examples of CongressXML failing, but I know in the beginning users were being shown Ooops pages instead of the bill text they requested.
If there's some way to notify in the case of a CongressXML exception while also providing the user with what they requested, we should do that.
I added some try/except clauses:
https://github.com/JoshData/congressxml/commit/680c8dc2fd0e43feae198de2e5788f7c1ba5d42c
That eliminated the last of the oops messages.
This seems to me like something that should be fixed in the GovTrack code, not the CongressXML code.
No.