summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 9e37f5e32d..223f9c5052 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -233,9 +233,14 @@ def export_vars(d):
keys = (key for key in d.keys() if d.getVarFlag(key, "export"))
ret = {}
for k in keys:
- v = d.getVar(k, True)
- if v:
- ret[k] = v
+ try:
+ v = d.getVar(k, True)
+ if v:
+ ret[k] = v
+ except (KeyboardInterrupt, bb.build.FuncFailed):
+ raise
+ except Exception, exc:
+ pass
return ret
def update_data(d):