配置文件增加UTF8编码格式支持,以免解析中文时出现问题

This commit is contained in:
2024-08-28 08:04:01 +08:00
parent 07a3b2a147
commit 56459c164e
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ logger = logging.getLogger(__name__)
def load_configs():
with open("config/loaders.yaml") as f:
with open("config/loaders.yaml",encoding='UTF-8') as f:
configs = yaml.safe_load(f)
return configs