Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 33 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 34 |
return f"The current local time in {timezone} is: {local_time}"
|
| 35 |
except Exception as e:
|
| 36 |
-
return f"Error fetching time for
|
| 37 |
|
| 38 |
|
| 39 |
final_answer = FinalAnswerTool()
|
|
|
|
| 33 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
| 34 |
return f"The current local time in {timezone} is: {local_time}"
|
| 35 |
except Exception as e:
|
| 36 |
+
return f"Error fetching time for timezonee '{timezone}': {str(e)}"
|
| 37 |
|
| 38 |
|
| 39 |
final_answer = FinalAnswerTool()
|