[Bug fix] Fix issue of loading other languages in config file (#1153)

This commit is contained in:
Deshraj Yadav
2024-01-10 13:04:57 +05:30
committed by GitHub
parent 3cff5e9898
commit 9e24aee40d
2 changed files with 2 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ class App(EmbedChain):
if config_path:
file_extension = os.path.splitext(config_path)[1]
with open(config_path, "r") as file:
with open(config_path, "r", encoding="UTF-8") as file:
if file_extension in [".yaml", ".yml"]:
config_data = yaml.safe_load(file)
elif file_extension == ".json":