Skip to content

Commit

Permalink
Merge pull request #459 from speckdavid/master
Browse files Browse the repository at this point in the history
Fix of pddl anytime planner
  • Loading branch information
alvalentini committed Jul 21, 2023
2 parents 83d1b5e + a38d9d8 commit c9e14a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unified_planning/engines/pddl_anytime_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _parse_planner_output(self, writer: "Writer", planner_output: str):
for l in planner_output.splitlines():
if self._starting_plan_str() in l:
writer.storing = True
elif self._ending_plan_str() in l:
elif writer.storing and self._ending_plan_str() in l:
plan_str = "\n".join(writer.current_plan)
plan = self._plan_from_str(
writer.problem, plan_str, self._writer.get_item_named
Expand Down

0 comments on commit c9e14a1

Please sign in to comment.