bmaphis commited on
Commit
4495b01
·
verified ·
1 Parent(s): 5933fbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -24,7 +24,10 @@ def DuckDuckGoSearchTool(query_string:str,max_results:int) -> str: #it's import
24
  timelimit=None,
25
  max_results=max_results
26
  )
27
- return results
 
 
 
28
 
29
  return "What magic will you build ?"
30
 
 
24
  timelimit=None,
25
  max_results=max_results
26
  )
27
+ return results
28
+
29
+ except Exception as e:
30
+ return f"Error fetching time for timezone '{timezone}': {str(e)}"
31
 
32
  return "What magic will you build ?"
33