summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-17 10:48:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-18 11:13:49 +0100
commitd0072fc1391eda890268a91d692075b876f85914 (patch)
tree3af7e28abee214b429b43c887379f40c0c7137eb
parent529bf977e956175bd8405ebffc88194192e44740 (diff)
downloadpoky-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.py3
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