skip files in the list if we can't get the correct model path (#100)
This commit is contained in:
parent
280fbe8019
commit
9658a5043b
1 changed files with 2 additions and 2 deletions
|
@ -206,8 +206,8 @@ func list(c *gin.Context) {
|
||||||
mp := ParseModelPath(tag)
|
mp := ParseModelPath(tag)
|
||||||
manifest, err := GetManifest(mp)
|
manifest, err := GetManifest(mp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("couldn't get manifest: %v", err)
|
log.Printf("skipping file: %s", fp)
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
model := api.ListResponseModel{
|
model := api.ListResponseModel{
|
||||||
Name: mp.GetShortTagname(),
|
Name: mp.GetShortTagname(),
|
||||||
|
|
Loading…
Reference in a new issue