summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2015-08-24 15:31:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-04 16:23:58 +0100
commit5fe590cd6e60cba7b7f52826629e57e8ac67e195 (patch)
tree761de6f5986be2533dafeeb12e56ced730b2f122 /bitbake/lib
parent7ef2f951d690df0939a8349ac024352b2a144249 (diff)
downloadpoky-5fe590cd6e60cba7b7f52826629e57e8ac67e195.tar.gz
bitbake: bb.data_smart: retain traceback from ExpansionError
This gives us the needed context of the original ExpansionError, which is invaluable when we have a chain of function calls in the expansion. (Bitbake rev: c514b6fbea77ede1b7871b89592a33ed39b1d71c) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/data_smart.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 75e22f9c45..79b4ed9329 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -392,7 +392,8 @@ class DataSmart(MutableMapping):
392 except bb.parse.SkipRecipe: 392 except bb.parse.SkipRecipe:
393 raise 393 raise
394 except Exception as exc: 394 except Exception as exc:
395 raise ExpansionError(varname, s, exc) 395 exc_class, exc, tb = sys.exc_info()
396 raise ExpansionError, ExpansionError(varname, s, exc), tb
396 397
397 varparse.value = s 398 varparse.value = s
398 399