bitbake: runqueue.py: Clean up runqueue exception catching in the normal task failure case

(Bitbake rev: a0bc58031d4eb31f8587171e870ecad059af5098)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2012-08-02 20:40:36 +00:00
parent 5442b9aa25
commit 67bfb37475
1 changed files with 3 additions and 0 deletions

View File

@ -927,8 +927,11 @@ class RunQueue:
return retval
def execute_runqueue(self):
# Catch unexpected exceptions and ensure we exit when an error occurs, not loop.
try:
return self._execute_runqueue()
except bb.runqueue.TaskFailure:
raise
except:
logger.error("An uncaught exception occured in runqueue, please see the failure below:")
self.state = runQueueComplete