Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Nov 14, 2024
1 parent 7b33df5 commit e52d08c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def _build_common_output(node, lib_name=None):
# homogeneous behavior.
if "cvss3_severity" in node:
cvss_sev = node.get("cvss3_severity")
else:
cvss_sev = node.get("severity")
elif "vulnerability" in node:
cvss_sev = node["vulnerability"].get("severity")
severity = cvss_sev.lower().capitalize()

cvss3_score = node.get("cvss3_score", None)
Expand Down

0 comments on commit e52d08c

Please sign in to comment.