tooksoi/ScraXBRL

IndexError: list index out of range

Opened this issue · 0 comments

Affects:
DataView('AC','2015-09-30','10-Q')
DataView('AIW','2011-06-30','10-Q')
DataView('AI','2012-09-30','10-Q')
DataView('APLE','2014-03-31','10-Q')
DataView('ARE','2012-03-31','10-Q')
DataView('ARL','2016-06-30','10-Q')
DataView('AT','2011-06-30','10-Q')
DataView('A','2016-07-31','10-Q')
[...]

Traceback (most recent call last):
DataView('AC','2015-09-30','10-Q')
File "DataViewer.py", line 13, in init
self.load_data()
File "DataViewer.py", line 20, in load_data
fpath_file = os.listdir(fpath_no_p)[0]
IndexError: list index out of range

Most likely the pickle file was not created because the xml file(s) might not have been parsed properly (or they may have errors)?