From 1bdc1ba92ffa4bdc280413429c16fed3ba384289 Mon Sep 17 00:00:00 2001 From: rutujaac Date: Mon, 26 Aug 2024 13:50:01 +0530 Subject: [PATCH] fix: version error --- pebblo/reports/html_to_pdf_generator/report_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pebblo/reports/html_to_pdf_generator/report_generator.py b/pebblo/reports/html_to_pdf_generator/report_generator.py index b4c91580..dc718553 100644 --- a/pebblo/reports/html_to_pdf_generator/report_generator.py +++ b/pebblo/reports/html_to_pdf_generator/report_generator.py @@ -63,7 +63,7 @@ def convert_html_to_pdf(data, output_path, template_name, search_path, renderer) findings_count = data["reportSummary"].get("findings", 0) clientVersion = "" versionObj = data.get("clientVersion", None) - if versionObj is not None and versionObj["version"] is not None: + if versionObj is not None and versionObj.get("version", None) is not None: clientVersion = ( versionObj.get("name", "") + " " + versionObj.get("version", "") )