diff --git a/src/build/gitee_comment.py b/src/build/gitee_comment.py index 59ad33ce23490a9c02ca4cf344d3f880c619a405..0e017baf9fc699ab40b1e31f8cc9a7c72c275ed7 100755 --- a/src/build/gitee_comment.py +++ b/src/build/gitee_comment.py @@ -586,7 +586,7 @@ class Comment(object): check_item_info["check_install"] = yaml_data[0]["result"] else: single_build_result = build["result"] - if check_item_info.get("check_install") != "success": + if check_item_info and check_item_info.get("check_install") != "success": self.check_install_result = False logger.info(f"single_build_result:{single_build_result}") logger.info(f"check_item_info:{check_item_info}")