From 10e64981f313998e987967cbfe03d4789cf46ada Mon Sep 17 00:00:00 2001 From: yaowenrui Date: Tue, 3 Sep 2024 11:37:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=84=E5=8C=BA=E5=91=8A=E8=AD=A6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9B=9E=E5=90=88=E8=93=9D=E5=8C=BA=E4=B8=BB=E5=B9=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yaowenrui --- kernel_build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel_build.py b/kernel_build.py index 8edf11c..4b92ee2 100755 --- a/kernel_build.py +++ b/kernel_build.py @@ -53,16 +53,18 @@ class Reporter: def report_build_warning(self, filename, regex, details): + report = {} + if len(details) == 0 or filename is None: - return None + return report if not os.path.exists(os.path.join(self.path, filename)): - return None + return report line = details[0] try: warning = re.search(regex, line).group(0) - except: + except GetBuildWaringErr as e: print('Except>>>', details) return -- Gitee