Skip to content

Commit 1c8715c

Browse files
committed
Updates from testing
1 parent 4fef535 commit 1c8715c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

generate_pclp_reports.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,11 @@ def generate_source():
303303
return output, listOfContent
304304

305305
def generate_html_report(mpName, input_xml, output_html):
306+
307+
if not os.path.exists(input_xml):
308+
print(f"{input_xml} was not found. Skipping PCLP HTML reporting")
309+
return
310+
306311
import pathlib
307312
from vector.apps.DataAPI.vcproject_api import VCProjectApi
308313
from vector.apps.ReportBuilder.custom_report import CustomReport
@@ -485,6 +490,11 @@ def write_output(output, filename):
485490
file.write(output.decode('utf-8'))
486491

487492
def generate_reports(input_xml, output_text = None, output_html = None, output_json = None, output_gitlab = None, full_mp_name = None):
493+
494+
if not os.path.exists(input_xml):
495+
print(f"{input_xml} was not found. Skipping PCLP reporting")
496+
return
497+
488498
msgs = parse_msgs(input_xml)
489499
msgs.sort(key=lambda msg: (msg.file == "", msg.file, int(msg.line) if msg.line != "" else 0))
490500
if output_text:

0 commit comments

Comments
 (0)