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