Skip to content

Commit

Permalink
fixed #223
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Sep 7, 2022
1 parent 3bfdf8d commit 002f2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vuln_apis/depsdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_vulns_from_depsdev(ecosystem, package_name, version):
"severity": __SEVERITY_DICT[advisory["severity"]],
"description": advisory["description"]}

if advisory["CVEs"]:
if "CVEs" in advisory and advisory["CVEs"]:
cves = [cve for cve in advisory["CVEs"]]
vul["cves"] = json.dumps(cves)
vul["reference"] = advisory["sourceURL"]
Expand Down

0 comments on commit 002f2d0

Please sign in to comment.