fix: Correct syntax error by adjusting exception handling indentation
This commit is contained in:
parent
76075cd104
commit
b5125a409f
@ -114,6 +114,7 @@ def get_stock_data(ticker: str, start_date: datetime, end_date: datetime, interv
|
||||
df.reset_index(inplace=True)
|
||||
|
||||
return df
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error fetching data for {ticker}: {str(e)}")
|
||||
return pd.DataFrame()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user