made returns from next task consistent to avoid typeerrors, also linear now checks for none

fixes #11965
This commit is contained in:
Brian Coca 2015-08-14 18:07:14 -04:00
commit 245e0dd4b7
2 changed files with 4 additions and 1 deletions

View file

@ -130,7 +130,7 @@ class PlayIterator:
task = None
if s.run_state == self.ITERATING_COMPLETE:
return None
return (None, None)
elif s.run_state == self.ITERATING_SETUP:
s.run_state = self.ITERATING_TASKS
s.pending_setup = True