fix: Align except block with try block in get_stock_data function

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

View File

@ -33,6 +33,7 @@ def get_interval_choice() -> str:
def get_stock_data(ticker: str, start_date: datetime, end_date: datetime, interval: str) -> pd.DataFrame: def get_stock_data(ticker: str, start_date: datetime, end_date: datetime, interval: str) -> pd.DataFrame:
"""Fetch stock data from the database""" """Fetch stock data from the database"""
try:
client = create_client() client = create_client()
# Calculate proper date range (looking back from today) # Calculate proper date range (looking back from today)