Quivering commited on
Commit
d481747
·
verified ·
1 Parent(s): 2e99e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -37,6 +37,8 @@ def get_weather_info(city: str) -> str:
37
  f"Conditions: {conditions}\n"
38
  f"Humidity: {humidity}%\n"
39
  f"Wind Speed: {wind_speed} m/s")
 
 
40
 
41
  @tool
42
  def get_current_time_in_timezone(timezone: str) -> str:
 
37
  f"Conditions: {conditions}\n"
38
  f"Humidity: {humidity}%\n"
39
  f"Wind Speed: {wind_speed} m/s")
40
+ except Exception as e:
41
+ return f"Error fetching weather for city '{city}': {str(e)}"
42
 
43
  @tool
44
  def get_current_time_in_timezone(timezone: str) -> str: