From 027e0db0fd4e55ced62fa99c111f8f895019cfeb Mon Sep 17 00:00:00 2001 From: wangyangdahai Date: Tue, 11 Nov 2025 18:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BD=93=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4=E6=B2=A1=E6=9C=89compare?= =?UTF-8?q?=5Fdetails=E6=97=B6=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/build/gitee_comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/gitee_comment.py b/src/build/gitee_comment.py index 4fe891a..9f3be5c 100755 --- a/src/build/gitee_comment.py +++ b/src/build/gitee_comment.py @@ -430,7 +430,7 @@ class Comment(object): content = yaml.safe_load(f) except YAMLError: # yaml base exception logger.exception("illegal yaml format of compare package comment file ") - compare_details = content.get("compare_details") + compare_details = content.get("compare_details", {}) logger.info("comment: %s", compare_details) for index, item in enumerate(compare_details): rpm_name = compare_details.get(item, []) -- Gitee