summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 8d3825f398..ca78d84133 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -152,6 +152,9 @@ class DataContext(dict):
152 self['d'] = metadata 152 self['d'] = metadata
153 153
154 def __missing__(self, key): 154 def __missing__(self, key):
155 # Skip commonly accessed invalid variables
156 if key in ['bb', 'oe', 'int', 'bool', 'time', 'str', 'os']:
157 raise KeyError(key)
155 value = self.metadata.getVar(key) 158 value = self.metadata.getVar(key)
156 if value is None or self.metadata.getVarFlag(key, 'func', False): 159 if value is None or self.metadata.getVarFlag(key, 'func', False):
157 raise KeyError(key) 160 raise KeyError(key)