You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and when calling the finvizfinance(ticker=ticker).ticker_fundament() function, I get an error in the exception handler:
File "/home/eric/.local/lib/python3.11/site-packages/finvizfinance/quote.py", line 142, in ticker_fundament
) = rows[2].text.split(" | ")
~~~~^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/eric/dev/polygon/yahoo.py", line 95, in <module>
analyzeStock("MRVL")
File "/home/eric/dev/polygon/yahoo.py", line 65, in analyzeStock
quote=finvizfinance(ticker=ticker).ticker_fundament()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eric/.local/lib/python3.11/site-packages/finvizfinance/quote.py", line 145, in ticker_fundament
(_, fundament_info["Company"], _) = rows[0].text.split(' | ')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)
Adding a trace on print (rows[1].text) and print (rows[2].text) prints this:
Technology | Semiconductors | USA | NASD
Cannot parse Company, Sector, Industry and Country
The text was updated successfully, but these errors were encountered:
The fix for issue #73 is apparently not complete
and when calling the
finvizfinance(ticker=ticker).ticker_fundament()
function, I get an error in the exception handler:Adding a trace on
print (rows[1].text)
andprint (rows[2].text)
prints this:The text was updated successfully, but these errors were encountered: