Skip to content

Commit b4732a7

Browse files
lsteinRyanJDick
andauthored
Update invokeai/app/services/model_records/model_records_base.py
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
1 parent 344a563 commit b4732a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

invokeai/app/services/model_records/model_records_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def model_info_by_name(self, model_name: str, base_model: BaseModelType, model_t
145145
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)