[F] AttributeError: 'dict' object has no attribute 'recolor_ascii'

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-02 23:37:18 -04:00
parent d11796ef02
commit 85eaad14f2
4 changed files with 19 additions and 3 deletions

View file

@ -27,7 +27,7 @@ def check_config() -> Config:
:return: Config object
"""
if CONFIG_PATH.is_file():
return Config(**json.loads(CONFIG_PATH.read_text('utf-8')))
return Config.from_dict(json.loads(CONFIG_PATH.read_text('utf-8')))
return create_config()