From 8b8b439b5501761663091137194e30879a4f2769 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 31 Aug 2022 11:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E8=A7=A3=E5=86=B3Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/modelarts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index 1885295f8..847e831f6 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -346,7 +346,7 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool) attachment, err := models.GetAttachmentByUUID(uuidStr) if err != nil { log.Error("GetAttachmentByUUID failed:%v", err.Error()) - if len(datasetnameList) <= i { + if len(datasetnameList) <= i || len(datasetname) == 0 { continue } name = datasetnameList[i]