瀏覽代碼

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

Patrick Devine 1 年之前
父節點
當前提交
9658a5043b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/routes.go

+ 2 - 2
server/routes.go

@@ -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)
-				return err
+				log.Printf("skipping file: %s", fp)
+				return nil
 			}
 			}
 			model := api.ListResponseModel{
 			model := api.ListResponseModel{
 				Name:       mp.GetShortTagname(),
 				Name:       mp.GetShortTagname(),