diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-02 20:40:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-02 21:42:11 +0100 |
commit | a0bc58031d4eb31f8587171e870ecad059af5098 (patch) | |
tree | 2230d392a1babaff0ec51a269c96697edee3fd7a /lib/bb/runqueue.py | |
parent | 75a7caf6f2d9f4399c95b9249db1b3bc5a48dc61 (diff) | |
download | bitbake-a0bc58031d4eb31f8587171e870ecad059af5098.tar.gz |
runqueue.py: Clean up runqueue exception catching in the normal task failure case
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index d3a1d2d4f..bc2eb8772 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -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 |