Skip to content

Commit

Permalink
Fix #13 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew000 authored Nov 22, 2024
1 parent 1870a86 commit 8d7cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ftl_extract/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d7cb67

Please sign in to comment.