fix logic error introduced in PR 4109

This commit is contained in:
Lincoln Stein 2023-08-07 15:38:22 -04:00
parent ae17d01e1d
commit 72a3e776b2

View File

@ -546,8 +546,9 @@ class ModelManager(object):
the combined format of the list_models() method. the combined format of the list_models() method.
""" """
models = self.list_models(base_model, model_type, model_name) models = self.list_models(base_model, model_type, model_name)
if len(models) > 1: if len(models) >= 1:
return models[0] return models[0]
else:
return None return None
def list_models( def list_models(