Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistant bug related to night mode #75

Closed
jobidon opened this issue Jun 1, 2023 · 2 comments · Fixed by #76
Closed

Persistant bug related to night mode #75

jobidon opened this issue Jun 1, 2023 · 2 comments · Fixed by #76
Assignees

Comments

@jobidon
Copy link

jobidon commented Jun 1, 2023

The fix for issue #73 is apparently not complete

pip list|grep finvizfinance
finvizfinance       0.14.6rc1

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
@lit26
Copy link
Owner

lit26 commented Jun 1, 2023

Can you test the PR? Maybe they change something.

@lit26 lit26 self-assigned this Jun 1, 2023
@nicklasti
Copy link

Hi, I'm also having the error

@lit26 lit26 closed this as completed in #76 Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants