Spaces:
Running
Running
doc: Optimization error description
Browse files
services/planner_service.py
CHANGED
|
@@ -501,7 +501,7 @@ class PlannerService:
|
|
| 501 |
session = self._get_live_session(session)
|
| 502 |
final_ref_id = poi_repo.get_last_id_by_session(session.session_id)
|
| 503 |
if not final_ref_id:
|
| 504 |
-
raise ValueError(f"No results found")
|
| 505 |
|
| 506 |
structured_data = poi_repo.load(final_ref_id)
|
| 507 |
timeline_html = create_timeline_html_enhanced(structured_data.get("timeline", []))
|
|
|
|
| 501 |
session = self._get_live_session(session)
|
| 502 |
final_ref_id = poi_repo.get_last_id_by_session(session.session_id)
|
| 503 |
if not final_ref_id:
|
| 504 |
+
raise ValueError(f"No results found, please Stop & Back to Edit to re-run the planning.")
|
| 505 |
|
| 506 |
structured_data = poi_repo.load(final_ref_id)
|
| 507 |
timeline_html = create_timeline_html_enhanced(structured_data.get("timeline", []))
|