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
The _fetch method on Quote in scrapers.quote checks a few things and raises error. Just requests.exceptions.HTTPError is not raised. Instead it is caught and an error is logged (see:
404 Client Error: Not Found for url: https://query2.finance.yahoo.com/v10/finance/quoteSummary/BIG?modules=financialData%2CquoteType%2CdefaultKeyStatistics%2CassetProfile%2CsummaryDetail&corsDomain=finance.yahoo.com&formatted=false&symbol=BIG&crumb=92tlCzJ1hkE
>>> error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'error' is not defined. Did you mean: 'OSError'?
Bad data proof
No response
yfinance version
0.2.51
Python version
No response
Operating system
No response
The text was updated successfully, but these errors were encountered:
Describe bug
The
_fetch
method onQuote
inscrapers.quote
checks a few things and raises error. Justrequests.exceptions.HTTPError
is not raised. Instead it is caught and an error is logged (see:yfinance/yfinance/scrapers/quote.py
Line 589 in 5adddf3
I would like to catch this error and handle it when using
yfinance
. Why not do something like:(Posted it as "Bug" because it seems like an exception should be handled or raised)
Simple code that reproduces your problem
Debug log
Bad data proof
No response
yfinance
version0.2.51
Python version
No response
Operating system
No response
The text was updated successfully, but these errors were encountered: