Closed ivnle closed 1 year ago
Hello. When is this happening? What function are you calling and with which arguments? A stack trace is helpful.
I'm getting an error when fetching a Quote, I'm guessing it's the same problem. Here's the code and stack trace:
>>> q = Quote('AAPL')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../lib/python3.10/site-packages/pyfinviz/quote.py", line 130, in __init__
self.outer_ratings_df = Quote.__get_outer_ratings_df__(self.soup)
File "/.../lib/python3.10/site-packages/pyfinviz/quote.py", line 21, in __get_outer_ratings_df__
outer_ratings_info.append({tags__[i]: o_tds_text[i] for i in range(0, len(tags__))})
File "/.../lib/python3.10/site-packages/pyfinviz/quote.py", line 21, in <dictcomp>
outer_ratings_info.append({tags__[i]: o_tds_text[i] for i in range(0, len(tags__))})
IndexError: list index out of range
It is the same issue as @drampelt described.
Thank you for the stack trace @drampelt. Looking into it.
Issue is fixed. Please update to the latest version and confirm:
pip install pyfinviz==0.10
I will close this issue once I receive confirmation. Thanks!
Confirmed that 0.10 fixes the issue.
Adding the check below resolves the issue.