diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-17 10:48:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-18 11:13:49 +0100 |
commit | d0072fc1391eda890268a91d692075b876f85914 (patch) | |
tree | 3af7e28abee214b429b43c887379f40c0c7137eb | |
parent | 529bf977e956175bd8405ebffc88194192e44740 (diff) | |
download | poky-d0072fc1391eda890268a91d692075b876f85914.tar.gz |
bitbake: utils: Don't show stack traces for BBHandledException
A BBHandledException means we already showed an error to the user so
we shouldn't show a stack trace as this just confuses things further.
(Bitbake rev: 8a8bafc8ded98364a31878b23c64503a53affcd1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index f9ee4f1c1d..560f55a074 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -354,6 +354,9 @@ def better_exec(code, context, text = None, realfile = "<code>"): | |||
354 | code = better_compile(code, realfile, realfile) | 354 | code = better_compile(code, realfile, realfile) |
355 | try: | 355 | try: |
356 | exec(code, get_context(), context) | 356 | exec(code, get_context(), context) |
357 | except bb.BBHandledException: | ||
358 | # Error already shown so passthrough | ||
359 | raise | ||
357 | except Exception as e: | 360 | except Exception as e: |
358 | (t, value, tb) = sys.exc_info() | 361 | (t, value, tb) = sys.exc_info() |
359 | 362 | ||