fix keyerror bug that was causing merge script to crash

This commit is contained in:
Lincoln Stein 2023-07-30 18:35:43 -04:00 committed by Kent Keirsey
parent 6d24ca7f52
commit f4ead5e07f

View File

@ -320,7 +320,7 @@ class mergeModelsForm(npyscreen.FormMultiPageAction):
def get_model_names(self, base_model: BaseModelType = None) -> List[str]:
model_names = [
info["name"]
info["model_name"]
for info in self.model_manager.list_models(model_type=ModelType.Main, base_model=base_model)
if info["model_format"] == "diffusers"
]