diff --git a/core/utils/i18n.py b/core/utils/i18n.py index 7f763287c9..f20d401567 100644 --- a/core/utils/i18n.py +++ b/core/utils/i18n.py @@ -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:])