From bc55cb1ee3dd401e2e83e0dbe799bf122e2f6b25 Mon Sep 17 00:00:00 2001 From: andrew000 <11490628+andrew000@users.noreply.github.com> Date: Fri, 22 Nov 2024 23:03:10 +0200 Subject: [PATCH] Fix #13 --- src/ftl_extract/matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(