Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,8 @@ def DuckDuckGoSearchTool(query: str)-> str:
|
|
| 29 |
try:
|
| 30 |
forward(query)
|
| 31 |
return "## Search Results\n\n" + "\n\n".join(postprocessed_results)
|
|
|
|
|
|
|
| 32 |
|
| 33 |
@tool
|
| 34 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 29 |
try:
|
| 30 |
forward(query)
|
| 31 |
return "## Search Results\n\n" + "\n\n".join(postprocessed_results)
|
| 32 |
+
except Exception as e:
|
| 33 |
+
return f"Error fetching search results '{query}': {str(e)}"
|
| 34 |
|
| 35 |
@tool
|
| 36 |
def get_current_time_in_timezone(timezone: str) -> str:
|