skip files in the list if we can't get the correct model path (#100)

This commit is contained in:
Patrick Devine 2023-07-18 12:39:08 -07:00 committed by GitHub
parent 280fbe8019
commit 9658a5043b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,8 +206,8 @@ func list(c *gin.Context) {
mp := ParseModelPath(tag)
manifest, err := GetManifest(mp)
if err != nil {
log.Printf("couldn't get manifest: %v", err)
return err
log.Printf("skipping file: %s", fp)
return nil
}
model := api.ListResponseModel{
Name: mp.GetShortTagname(),