Minor tweak and comment addition to 974a0ce3

This commit is contained in:
James Cammarata 2015-12-02 09:10:20 -05:00
parent be92f909ee
commit 381409140e

View file

@ -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: