Minor tweak and comment addition to 974a0ce3
This commit is contained in:
parent
f1d53a87e5
commit
f7dc5a9515
1 changed files with 2 additions and 4 deletions
|
@ -396,10 +396,8 @@ class PlayIterator:
|
|||
return None
|
||||
|
||||
def _insert_tasks_into_state(self, state, task_list):
|
||||
if state.fail_state != self.FAILED_NONE:
|
||||
return state
|
||||
|
||||
if not task_list:
|
||||
# if we've failed at all, or if the task list is empty, just return the current state
|
||||
if state.fail_state != self.FAILED_NONE or not task_list:
|
||||
return state
|
||||
|
||||
if state.run_state == self.ITERATING_TASKS:
|
||||
|
|
Loading…
Reference in a new issue