eregs / regulations-parser

Parser for U.S. federal regulations and other regulatory information
Creative Commons Zero v1.0 Universal
36 stars 40 forks source link

37 CFR 1 - appendix title in WHED tag #364

Closed gregoryfoster closed 7 years ago

gregoryfoster commented 7 years ago

We've discovered a case where the annual_editions command fails when attempting to import the 2001 annual edition of 37 CFR 1. The failure occurs in the get_app_title() function at interpparser/gpo_cfr.py:317 when attempting to traverse an empty titles array. The appendix observed does not abide by previous expectations encoded in the function.

@cmc333333 identified a solution which accounts for the appendix's novel usage of the WHED tag to encode a title. He intimates there may be more to this fix.

Issue first identified by @meriouma and @cmc333333 as part of #355.

gregoryfoster commented 7 years ago

WIP pull request issued #365.

gregoryfoster commented 7 years ago

New PR issued #367.