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 4482f9c commit 190fe98Copy full SHA for 190fe98
vulnerabilities/importer.py
@@ -111,7 +111,7 @@ def to_dict(self):
111
def from_dict(cls, ref: dict):
112
return cls(
113
reference_id=ref["reference_id"],
114
- reference_type=ref["reference_type"],
+ reference_type=ref.get("reference_type") or "",
115
url=ref["url"],
116
severities=[
117
VulnerabilitySeverity.from_dict(severity) for severity in ref["severities"]
0 commit comments