We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef0e219 commit b67d91aCopy full SHA for b67d91a
1 file changed
jupyddl/automated_planner.py
@@ -44,7 +44,10 @@ def __run_julia_once(self):
44
self.satisfies(self.problem.goal, self.initial_state)
45
self.state_has_term(self.initial_state, self.goals[0])
46
actions = self.available_actions(self.initial_state)
47
- self.transition(self.initial_state, actions[0])
+ if actions:
48
+ self.transition(self.initial_state, actions[0])
49
+ return
50
+ logging.warning("No actions from initial state, a path probably (definitely) won't be found")
51
52
def __init_logger(self, log_level):
53
import os
0 commit comments