Skip to content

Commit

Permalink
Update i18n.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored Nov 29, 2024
1 parent b400af1 commit dbef1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def query_node(self, path: str):
def _query_node(self, path: List[str]):
"""通过路径队列查询本地化树节点"""
if len(path) == 0:
return None
return self
nxt_node = path[0]
if nxt_node in self.children.keys():
return self.children[nxt_node]._query_node(path[1:])
Expand Down

0 comments on commit dbef1d8

Please sign in to comment.