Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_stock_price(ticker: str) -> str:
|
|
19 |
ticker: A string representing the stock ticker symbol (e.g., "AAPL" for Apple).
|
20 |
"""
|
21 |
|
22 |
-
|
23 |
# Get the current time in EST (Eastern Time Zone)
|
24 |
current_time = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=-5)))
|
25 |
|
|
|
19 |
ticker: A string representing the stock ticker symbol (e.g., "AAPL" for Apple).
|
20 |
"""
|
21 |
|
22 |
+
try:
|
23 |
# Get the current time in EST (Eastern Time Zone)
|
24 |
current_time = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=-5)))
|
25 |
|