Closed mel-mason closed 2 months ago
This should be fixed in the next v5 release:
>>> parsed_date_string = text_to_edtf('7 Jun-14 Jul 1916')
>>> parsed_date_string
'XXXX-06-07/1916-07-14'
>>> parsed_date = parse_edtf(parsed_date_string)
>>> parsed_date
Level2Interval: 'XXXX-06-07/1916-07-14'
>>> parsed_date.lower_strict()
time.struct_time(tm_year=0, tm_mon=6, tm_mday=7, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=0, tm_isdst=-1)
This is resolved by #56
The parser fails with an unhandled AttributeError on the following: '7 Jun-14 Jul 1916'. It looks like the issue is that the lower and upper bounds are both lists. I'm expecting EDTFParseExceptions, but not Attribute errors.
Code to replicate: (edtf=4.0.1, python = 3.6)
Exception thrown: