govtrack.us-web icon indicating copy to clipboard operation
govtrack.us-web copied to clipboard

Fall back to ugly bill text if CongressXML fails

Open GPHemsley opened this issue 10 years ago • 3 comments

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.

GPHemsley avatar Dec 14 '13 19:12 GPHemsley

I added some try/except clauses:

https://github.com/JoshData/congressxml/commit/680c8dc2fd0e43feae198de2e5788f7c1ba5d42c

That eliminated the last of the oops messages.

JoshData avatar Dec 14 '13 21:12 JoshData

This seems to me like something that should be fixed in the GovTrack code, not the CongressXML code.

GPHemsley avatar Dec 15 '13 15:12 GPHemsley

No.

JoshData avatar Dec 15 '13 15:12 JoshData