Skip to content

Commit

Permalink
raise planning failure instead
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsilver committed Nov 20, 2023
1 parent bf889d1 commit dbbc81d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions predicators/planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,10 +1061,7 @@ def fd_plan_from_sas_file(
num_nodes_expanded = re.findall(r"Expanded (\d+) state", output)
num_nodes_created = re.findall(r"Evaluated (\d+) state", output)
if len(num_nodes_expanded) != 1:
logging.info("######### Fast Downward Crash Output #########")
logging.info(output)
raise RuntimeError("ERROR: Fast downward crashed unexpectedly. The "
"full output is above.")
raise PlanningFailure(f"Plan not found with FD! Error: {output}")
assert len(num_nodes_created) == 1
metrics["num_nodes_expanded"] = float(num_nodes_expanded[0])
metrics["num_nodes_created"] = float(num_nodes_created[0])
Expand Down

0 comments on commit dbbc81d

Please sign in to comment.