fix: Align except block with try block in get_stock_data function
This commit is contained in:
parent
b5125a409f
commit
4f545d5041
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user