From b5d3c6aaa86f49395c9fe0983b3821c890d40ed2 Mon Sep 17 00:00:00 2001 From: snowykami Date: Tue, 17 Sep 2024 15:48:02 +0800 Subject: [PATCH] =?UTF-8?q?:package:=20docs:=20=E8=B5=84=E6=BA=90=E5=95=86?= =?UTF-8?q?=E5=BA=97=E6=96=B0=E5=A2=9E=E5=8F=91=E5=B8=83=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki_flow/resource_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liteyuki_flow/resource_handler.py b/liteyuki_flow/resource_handler.py index d80efda8..2de5117d 100644 --- a/liteyuki_flow/resource_handler.py +++ b/liteyuki_flow/resource_handler.py @@ -66,9 +66,9 @@ def pre_check(github: Github, issue: Issue, repo: Repository) -> err: z.extractall(f"tmp/{name}") # 检测包内metadata.yml文件 data = yaml.load(open(f"tmp/{name}/metadata.yml"), Loader=yaml.SafeLoader) - except Exception: - issue.get_comment(cid).edit("解析资源包失败,可能是格式问题或metadata.yml不存在.") - return ValueError("解析资源包失败,可能是格式问题或metadata.yml不存在.") + except Exception as e: + issue.get_comment(cid).edit("解析资源包失败,可能是格式问题或metadata.yml不存在: " + str(e)) + return e # 检测必要字段 name,description,version if not all((data.get("name"), data.get("description"), data.get("version"))):