Gracefully Handle Download Issues for Automated Calls #2005
-
BACKGROUND: I want to pull data from yfinance 10 times per minute (let’s call it cycles per minute) EXAMPLE CODE: “”” List of tickers to download data fortickers = ['AAPL', 'MSFT', 'GOOGL'] # Example tickers def download_data(ticker): Function to manage threadingdef fetch_data(tickers): Start fetching datafetch_data(tickers) Allow time for tasks to completetime.sleep(10) “”” ERROR MESSAGE: Exception in thread Thread-3: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Tidy the formatting please. |
Beta Was this translation helpful? Give feedback.
Tidy the formatting please.