diff --git a/script/RobotTCP.py b/script/RobotTCP.py index 75ef08f..27b34f6 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -389,7 +389,7 @@ class RobotTCP(TcpDevice, Stoppable): tasks = [t for t in self.high_level_tasks] if not program in tasks: tasks.append(pro) - for task in task: + for task in tasks: if self.get_task_status(task)[0]>=0: raise Exception("Ongoing high-level task: " + task) print "Setting ", program @@ -400,7 +400,7 @@ class RobotTCP(TcpDevice, Stoppable): tasks = [t for t in self.high_level_tasks] if (self.current_task is not None) and (not self.current_task in tasks): tasks.append(pro) - for task in task: + for task in tasks: if self.get_task_status(task)[0]>=0: self.task_kill(task)