Unverified Commit 9658a504 authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

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

parent 280fbe80
...@@ -206,8 +206,8 @@ func list(c *gin.Context) { ...@@ -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(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment