JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

TypeError: 'NoneType' object is not subscriptable #184

Open datatalking opened 4 months ago

datatalking commented 4 months ago

In the code below I'm not sure how to resolve these issues.

  1. This is a 'NoneType Error' which I've seen before but somewhere after digging intoyahoofinancials/yahoofinancials /data.py

I added the code in life 5 to test responses, but I've changed them all to 'none' in testing so, when I'm getting this error. Can you describe your process to debug this or is this depreciated code when PyCaret still references it...

Screen Shot 2024-02-27 at 3 04 52 AM
  1. How does my 16 items of commodities get cut down to twelve near line 10?