Check if a ticker exists in yfinance
I am making a request to yfinance to get data for a specific stock ticker and I want to handle the case that an invalid stock ticker has been entered. I tried the standard try and except duo but because yfinance automatically handles these cases it won’t let me handle it myself. Essentially the code continues on as if nothing happened I want to do something specific if this occurs.