python-xbrl icon indicating copy to clipboard operation
python-xbrl copied to clipboard

'NoneType' object has no attribute 'name'

Open farmnick opened this issue 9 years ago • 2 comments

Running the example in gaap.py returns the error:

File "C:\Python27\lib\site-packages\xbrl\xbrl.py", line 80, in parse re.IGNORECASE | re.MULTILINE)).name AttributeError: 'NoneType' object has no attribute 'name'

farmnick avatar Nov 17 '16 03:11 farmnick

@farmnick could you provide a traceback and environment information on this issue since I cannot reproduce?

greedo avatar Jan 18 '18 20:01 greedo

I've just encountered this parsing https://www.sec.gov/Archives/edgar/data/1739614/000173961421000093/inhibrx-20210903.xsd

So I think the root cause is probably accidentally parsing a non-XBRL document as XBRL, and this probably just need cleaner error handling.

SamStephens avatar Sep 06 '21 01:09 SamStephens