From 8d7cb67758e660d744bc2b5badedbee5ff90f156 Mon Sep 17 00:00:00 2001 From: Andrew <11490628+andrew000@users.noreply.github.com> Date: Fri, 22 Nov 2024 23:06:39 +0200 Subject: [PATCH] Fix #13 (#14) --- 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(