Closed gregoryfoster closed 7 years ago
Thanks @gregoryfoster! Looks like there are a few linter errors from Travis; would you mind addressing? Alternatively, there's a checkbox in the Github interface that allows maintainers to update your fork's branch, which would work.
Regarding the bare exception: do you know if there's a more specific exception being thrown? If not, we can just add # noqa
to the line.
Hi @cmc333333. I shrank the error message to address the line length warning and added # noqa
to the bare except:
line. At this time, I'm not sure what exceptions to expect, and feel like a catch-all is a good idea in this location. If there's a better exception handling pattern to follow, I'm opening up the branch for your commits and eager to learn!
Thanks @gregoryfoster! Unfortunately, we don't have a great exception-handling strategy at the moment (this is why you see so many non-helpful errors). I think, ideally, we'd have a grasp on what operations have a good chance of failing and account for those with human friendly error messages, but that's further off.
Per @cmc333333's guidance, adding a
try/except
block around theamendments
getter for theNoticeXML
class. This enables bypassing of parsing errors in other CFR parts.