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