diff --git a/src/ftl_extract/matcher.py b/src/ftl_extract/matcher.py index 65d3253..ea961fe 100644 --- a/src/ftl_extract/matcher.py +++ b/src/ftl_extract/matcher.py @@ -140,7 +140,7 @@ def visit_Call(self, node: ast.Call) -> None: # noqa: N802 self.generic_visit(node) elif isinstance(node.func, ast.Name) and node.func.id in self.func_names: - if not node.args: + if not node.args or not isinstance(node.args[0], ast.Constant): return fluent_key = create_fluent_key(