Please help getting Try / Except working for yfinance.download

Hi Kenneth,

You can’t make a function such as yfinance.download keep going by
catching the exception that halts it. By the time the exception is
caught, the function has already halted.

So your code can only continue after the download function
fails, like this:

# code here
try:
    yfinance.download(data)
except OverflowError:
    pass
# continue here

There’s no way to get the download function to keep going unless the
download function itself has an option to do so. Have you read the docs
to see if there is an option to have it ignore errors?