diff --git a/vulnerabilities/importers/xen.py b/vulnerabilities/importers/xen.py index 519df6bb8..d89f72c44 100644 --- a/vulnerabilities/importers/xen.py +++ b/vulnerabilities/importers/xen.py @@ -48,7 +48,7 @@ def to_advisories(self, xsa): references.append(XsaReference.from_number(number=xsa_id)) title = xsa.get("title") for cve in xsa.get("cve") or []: - #TODO: https://github.com/nexB/vulnerablecode/issues/981 + # TODO: https://github.com/nexB/vulnerablecode/issues/981 if not is_cve(cve): continue yield AdvisoryData( diff --git a/vulnerabilities/tests/test_data/parse-advisory-xen-expected.json b/vulnerabilities/tests/test_data/parse-advisory-xen-expected.json index 2acffa444..040c75fe1 100644 --- a/vulnerabilities/tests/test_data/parse-advisory-xen-expected.json +++ b/vulnerabilities/tests/test_data/parse-advisory-xen-expected.json @@ -12,6 +12,7 @@ "severities": [] } ], - "date_published": null + "date_published": null, + "weaknesses": [] } ] \ No newline at end of file