黄区告警修复回合蓝区主干

Signed-off-by: yaowenrui <yaowenrui2@huawei.com>
This commit is contained in:
yaowenrui
2024-09-03 11:37:46 +08:00
parent cea0d78b38
commit 77a7ded439
+5 -3
View File
@@ -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