We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa6961 commit f1efbbaCopy full SHA for f1efbba
vulnerabilities/pipelines/v2_importers/gentoo_importer.py
@@ -61,7 +61,7 @@ def process_file(self, file):
61
cves = []
62
summary = ""
63
xml_root = ET.parse(file).getroot()
64
- id = xml_root.attrib.get("id")
+ id = xml_root.attrib.get("id", "")
65
glsa = "GLSA-" + id
66
vuln_references = [
67
ReferenceV2(
@@ -108,9 +108,7 @@ def process_file(self, file):
108
references_v2=vuln_references,
109
severities=severities,
110
affected_packages=affected_packages,
111
- url=f"https://security.gentoo.org/glsa/{id}"
112
- if id
113
- else "https://security.gentoo.org/glsa",
+ url=f"https://security.gentoo.org/glsa/{id}",
114
original_advisory_text=file,
115
)
116
0 commit comments