mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-10 06:45:28 -05:00
Merge pull request #970 from suclogger/fix-reading-config-file-encoding
Use UTF-8 encoding for reading config file.
This commit is contained in:
@@ -47,7 +47,7 @@ class AIConfig:
|
||||
"""
|
||||
|
||||
try:
|
||||
with open(config_file) as file:
|
||||
with open(config_file, encoding='utf-8') as file:
|
||||
config_params = yaml.load(file, Loader=yaml.FullLoader)
|
||||
except FileNotFoundError:
|
||||
config_params = {}
|
||||
|
||||
Reference in New Issue
Block a user