Skip to content

Commit 6ed1eb2

Browse files
committed
fix using undocumented api
1 parent a0131d4 commit 6ed1eb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
test.py
55
*.log
66
*.pyc
7-
/__pycache__
7+
__pycache__
88
StatsHelper.py
99
/stats_helper
1010
/more_apis
1111
*.zip
1212
*.mcdr
1313
*.pyz
14+
*.bat
15+
*.sh
1416
ChatBridge_*.json

chatbridge/impl/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def load_config(config_path: str, config_class: Type[T]) -> T:
2020
raise FileNotFoundError(config_path)
2121
else:
2222
with open(config_path, encoding='utf8') as file:
23-
config.update_from(json.load(file))
23+
vars(config).update(vars(config_class.deserialize(json.load(file))))
2424
with open(config_path, 'w', encoding='utf8') as file:
2525
json.dump(config.serialize(), file, ensure_ascii=False, indent=4)
2626
return config

0 commit comments

Comments
 (0)