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 23:01:35 +0100 |
commit | 67bfb37475d64a931c32b984de011480dcd7c79d (patch) | |
tree | 6e6109ed1cf3048b240b20e1b5832cf60013e999 /bitbake/lib/bb/runqueue.py | |
parent | 5442b9aa250c2e94f28c56efc67cfc2bf3cb5fec (diff) | |
download | poky-67bfb37475d64a931c32b984de011480dcd7c79d.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index d3a1d2d4f7..bc2eb8772e 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -927,8 +927,11 @@ class RunQueue: | |||
927 | return retval | 927 | return retval |
928 | 928 | ||
929 | def execute_runqueue(self): | 929 | def execute_runqueue(self): |
930 | # Catch unexpected exceptions and ensure we exit when an error occurs, not loop. | ||
930 | try: | 931 | try: |
931 | return self._execute_runqueue() | 932 | return self._execute_runqueue() |
933 | except bb.runqueue.TaskFailure: | ||
934 | raise | ||
932 | except: | 935 | except: |
933 | logger.error("An uncaught exception occured in runqueue, please see the failure below:") | 936 | logger.error("An uncaught exception occured in runqueue, please see the failure below:") |
934 | self.state = runQueueComplete | 937 | self.state = runQueueComplete |