diff --git a/src/config_parser.py b/src/config_parser.py index ec4a543..ba8ef95 100644 --- a/src/config_parser.py +++ b/src/config_parser.py @@ -84,7 +84,7 @@ def __init__(self, path: str) -> None: os.makedirs(os.path.dirname(path), exist_ok=True) my_config = DEFAULT_CONFIG.copy() if my_config['tokens'] == ['']: - my_config['tokens'].append(init_first_token()) + my_config['tokens'] = [init_first_token()] with open(path, 'w', encoding='utf-8') as file: json.dump(my_config, file)