From 2272d46dfdbe7169eaca445589e9c2ff2350f315 Mon Sep 17 00:00:00 2001 From: testaccount90009 <122134756+testaccount90009@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:46:49 -0800 Subject: [PATCH] preserve the original else statement for grabbing severity --- dojo/tools/mend/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dojo/tools/mend/parser.py b/dojo/tools/mend/parser.py index 781966e2d4f..37d622cab28 100644 --- a/dojo/tools/mend/parser.py +++ b/dojo/tools/mend/parser.py @@ -104,6 +104,8 @@ def _build_common_output(node, lib_name=None): cvss_sev = node.get("cvss3_severity") elif "vulnerability" in node: cvss_sev = node["vulnerability"].get("severity") + else: + cvss_sev = node.get("severity") severity = cvss_sev.lower().capitalize() cvss3_score = node.get("cvss3_score", None)