AlexxRubio commited on
Commit
4f14ba2
·
verified ·
1 Parent(s): cdd8d85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ def get_weather_at_location(location:str)-> str: #it's import to specify the ret
17
  """
18
  try:
19
  return requests.get(f"https://wttr.in/{location}?format=3").text
20
- except Exception as 0:
21
- return f"Error fetching weather for city '{location}': {str(0)}"
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str:
 
17
  """
18
  try:
19
  return requests.get(f"https://wttr.in/{location}?format=3").text
20
+ except Exception as e:
21
+ return f"Error fetching weather for city '{location}': {str(e)}"
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str: