From 344a56327ae36964b3b8f9c14cca629015aebf6f Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 8 Nov 2023 13:50:01 -0500 Subject: [PATCH] Update invokeai/app/services/model_records/model_records_base.py Co-authored-by: Ryan Dick --- invokeai/app/services/model_records/model_records_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/services/model_records/model_records_base.py b/invokeai/app/services/model_records/model_records_base.py index 9c85f52776..a5ad4cdbdb 100644 --- a/invokeai/app/services/model_records/model_records_base.py +++ b/invokeai/app/services/model_records/model_records_base.py @@ -142,7 +142,7 @@ class ModelRecordServiceBase(ABC): model_configs = self.search_by_name(model_name=model_name, base_model=base_model, model_type=model_type) if len(model_configs) > 1: raise DuplicateModelException( - "More than one model share the same name and type: {base_model}/{model_type}/{model_name}" + 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}")