Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date parsing fails #71

Closed
mrx23dot opened this issue Sep 3, 2021 · 0 comments
Closed

Date parsing fails #71

mrx23dot opened this issue Sep 3, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mrx23dot
Copy link
Contributor

mrx23dot commented Sep 3, 2021

https://www.sec.gov/Archives/edgar/data/0001580905/000119312519281533/d802337d10q.htm

ixbrl gives:

Traceback (most recent call last):
  File "xbrl_small_test.py", line 14, in <module>
    inst = XbrlParser(cache).parse_instance(url)
  File "py-xbrl_my\xbrl\instance.py", line 653, in parse_instance
    return parse_ixbrl_url(url, self.cache)
  File "py-xbrl_my\xbrl\instance.py", line 363, in parse_ixbrl_url
    return parse_ixbrl(instance_path, cache, instance_url)
  File "py-xbrl_my\xbrl\instance.py", line 426, in parse_ixbrl
    fact_value: str or float = _extract_ixbrl_value(fact_elem)
  File "py-xbrl_my\xbrl\instance.py", line 503, in _extract_ixbrl_value
    parsed_date = strptime(fact_elem.text, '%B %d')
  File "C:\python36\lib\_strptime.py", line 559, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "C:\python36\lib\_strptime.py", line 362, in _strptime
    (data_string, format))
ValueError: time data 'December-31' does not match format '%B %d'

index
https://www.sec.gov/Archives/edgar/data/0001580905/000119312519281533/0001193125-19-281533-index.htm

@manusimidt manusimidt self-assigned this Sep 18, 2021
@manusimidt manusimidt added the bug Something isn't working label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants