# Please help getting Try / Except working for yfinance.download

**URL:** <https://discuss.python.org/t/please-help-getting-try-except-working-for-yfinance-download/11682>\
**Category:** Python Help\
**Tags:** help\
**Created:** [November 1, 2021, 7:15pm UTC](https://discuss.python.org/t/please-help-getting-try-except-working-for-yfinance-download/11682 "2021-11-01T19:15:03Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![steven.daprano](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steven.daprano/32/1083_2.png) [@steven.daprano](https://discuss.python.org/u/steven.daprano)\
**Post date:** [November 1, 2021, 11:26pm UTC](https://discuss.python.org/t/please-help-getting-try-except-working-for-yfinance-download/11682/6 "2021-11-01T23:26:29Z")

</div>

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?

---

_[View the full topic](https://discuss.python.org/t/please-help-getting-try-except-working-for-yfinance-download/11682)._
