Update invokeai/app/services/model_records/model_records_base.py

Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
This commit is contained in:
Lincoln Stein 2023-11-08 13:50:40 -05:00 committed by GitHub
parent 344a56327a
commit b4732a7308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ class ModelRecordServiceBase(ABC):
f"More than one model matched the search criteria: base_model='{base_model}', model_type='{model_type}', model_name='{model_name}'."
)
if len(model_configs) == 0:
raise UnknownModelException("No known model with name and type: {base_model}/{model_type}/{model_name}")
raise UnknownModelException(f"More than one model matched the search criteria: base_model='{base_model}', model_type='{model_type}', model_name='{model_name}'.")
return model_configs[0]
def rename_model(