There was an error while loading. Please reload this page.
1 parent 68d3f32 commit fa495daCopy full SHA for fa495da
1 file changed
vulnerabilities/importers/kaybee.py
@@ -52,7 +52,9 @@ def yaml_file_to_advisory(yaml_path):
52
53
data = load_yaml(yaml_path)
54
vuln_id = data["vulnerability_id"]
55
- summary = "\n".join([note["text"] for note in data["notes"]])
+ summary = ""
56
+ if data.get("text"):
57
+ summary = "\n".join([note["text"] for note in data["notes"]])
58
59
for entry in data.get("artifacts", []):
60
package = PackageURL.from_string(entry["id"])
0 commit comments