docs(config): clarify comment during config migration

This commit is contained in:
psychedelicious 2024-03-12 00:24:14 +11:00
parent b9884a6166
commit 53c8f36029

View File

@ -383,7 +383,7 @@ def load_and_migrate_config(config_path: Path) -> InvokeAIAppConfig:
config.write_file(exclude_defaults=True) config.write_file(exclude_defaults=True)
return config return config
else: else:
# This is a v4 config file, attempt to load it # Attempt to load as a v4 config file
try: try:
# Meta is not included in the model fields, so we need to validate it separately # Meta is not included in the model fields, so we need to validate it separately
config_meta = ConfigMeta.model_validate(loaded_config_dict.pop("meta")) config_meta = ConfigMeta.model_validate(loaded_config_dict.pop("meta"))