def execute(self):
        res = 0
        try:
            # Be careful that generator terminates or this will iterate forever
            while True:
                self.logger.debug("About to call step()")
                res = self.step()
                self.logger.debug("Result is %d" % (res))

        except __HOLE__:
            # Raised when tasklogic() "runs off the end" (terminates)
            pass

        # Return final result
        return res
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/tests/test_Task.py/stepTask.execute