We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf49fb commit 50d713dCopy full SHA for 50d713d
core/config.py
@@ -11,14 +11,14 @@ def __init__(self):
11
12
def load(self):
13
try:
14
- with open(ROOT_PATH / "config" / "config.yml", "r") as f:
+ with open(ROOT_PATH / "config" / "config.yml", "r", encoding="utf-8") as f:
15
self._data = yaml.safe_load(f) or {}
16
except:
17
print("[Config] Failed to load config.yml")
18
print(traceback.format_exc())
19
20
def save(self):
21
- with open(ROOT_PATH / "config" / "config.yml", "w") as f:
+ with open(ROOT_PATH / "config" / "config.yml", "w", encoding="utf-8") as f:
22
yaml.dump(self._data, f)
23
24
def _get_keys(self, key: str):
0 commit comments