Skip to content

Commit eebc0e7

Browse files
committed
Merge branch 'refactor/model-manager-2' of github.com:invoke-ai/InvokeAI into refactor/model-manager-2
2 parents 6b173cc + b4732a7 commit eebc0e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

invokeai/app/services/model_records/model_records_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ def model_info_by_name(self, model_name: str, base_model: BaseModelType, model_t
142142
model_configs = self.search_by_name(model_name=model_name, base_model=base_model, model_type=model_type)
143143
if len(model_configs) > 1:
144144
raise DuplicateModelException(
145-
"More than one model share the same name and type: {base_model}/{model_type}/{model_name}"
145+
f"More than one model matched the search criteria: base_model='{base_model}', model_type='{model_type}', model_name='{model_name}'."
146146
)
147147
if len(model_configs) == 0:
148-
raise UnknownModelException("No known model with name and type: {base_model}/{model_type}/{model_name}")
148+
raise UnknownModelException(f"More than one model matched the search criteria: base_model='{base_model}', model_type='{model_type}', model_name='{model_name}'.")
149149
return model_configs[0]
150150

151151
def rename_model(

0 commit comments

Comments
 (0)