dgunning / edgartools

Python library for working with SEC Edgar
MIT License
324 stars 70 forks source link

strip_ixbrl_tags breaks when name() is missing #28

Closed hspak closed 5 months ago

hspak commented 5 months ago

edgartools runs into this XML parsing exception when name is missing in the XML

Screenshot 2024-01-31 at 4 01 19 PM Screenshot 2024-01-31 at 3 58 28 PM

Repro simple

import edgar

edgar.set_identity("id")
company = edgar.Company("HON")
filings = company.get_filings(form=["10-K"])
filings[0].text()  <-- throws here

Python: 3.11.6 Edgartools version: 2.7.2

dgunning commented 5 months ago

Taking a look. I am planning a release in the next day or so, will include a fix for this

dgunning commented 5 months ago

Release a fix in version 2.8.0. Can you update and retest

pip install -U edgartools

dgunning commented 5 months ago

Close as fixed

hspak commented 5 months ago

It appears fixed, thank you!