Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def get_list_of_hotels(location: str, price: int) -> list:
|
|
53 |
hotels = [{"title": r["title"], "url": r["href"], "snippet": r["body"]} for r in results]
|
54 |
return hotels
|
55 |
except Exception as e:
|
56 |
-
return [{"error": f"Failed to fetch hotels
|
57 |
|
58 |
final_answer = FinalAnswerTool()
|
59 |
|
|
|
53 |
hotels = [{"title": r["title"], "url": r["href"], "snippet": r["body"]} for r in results]
|
54 |
return hotels
|
55 |
except Exception as e:
|
56 |
+
return [{"error": f"Failed to fetch hotels: {str(e)}"}]
|
57 |
|
58 |
final_answer = FinalAnswerTool()
|
59 |
|