fix: Correct syntax error by adjusting exception handling indentation

This commit is contained in:
Bobby Abellana (aider) 2025-02-07 08:54:21 -08:00 committed by Bobby Abellana
parent 76075cd104
commit b5125a409f
No known key found for this signature in database
GPG Key ID: 647714CC45F3647B

View File

@ -114,7 +114,8 @@ def get_stock_data(ticker: str, start_date: datetime, end_date: datetime, interv
df.reset_index(inplace=True)
return df
except Exception as e:
except Exception as e:
print(f"Error fetching data for {ticker}: {str(e)}")
return pd.DataFrame()