chigaijin commited on
Commit
f13f635
·
verified ·
1 Parent(s): 897cd2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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: