aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/introspection.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r--mesonbuild/ast/introspection.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index 49d531f..b6ec450 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -122,7 +122,7 @@ class IntrospectionInterpreter(AstInterpreter):
subi.analyze()
subi.project_data['name'] = dirname
self.project_data['subprojects'] += [subi.project_data]
- except:
+ except (mesonlib.MesonException, RuntimeError):
return
def func_add_languages(self, node, args, kwargs):
@@ -173,9 +173,9 @@ class IntrospectionInterpreter(AstInterpreter):
arg_node = curr.args
elif isinstance(curr, IdNode):
# Try to resolve the ID and append the node to the queue
- id = curr.value
- if id in self.assignments and self.assignments[id]:
- tmp_node = self.assignments[id][0]
+ var_name = curr.value
+ if var_name in self.assignments and self.assignments[var_name]:
+ tmp_node = self.assignments[var_name][0]
if isinstance(tmp_node, (ArrayNode, IdNode, FunctionNode)):
srcqueue += [tmp_node]
elif isinstance(curr, ArithmeticNode):