Skip to content

Commit a97a5b7

Browse files
committed
🎨 Update to string
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
1 parent f9712d0 commit a97a5b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mcp/weather_tool/weather_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_weather(city: str) -> str:
2020
response = requests.get(base_url, params=params, timeout=10)
2121
data = response.json()
2222
if not data or not "results" in data:
23-
return [{"error": f"City {city} not found"}]
23+
return f"City {city} not found"
2424
latitude = data["results"][0]["latitude"]
2525
longitude = data["results"][0]["longitude"]
2626

0 commit comments

Comments
 (0)