Skip to content

Commit

Permalink
check cvss_v3 for none
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Dec 14, 2023
1 parent 818af18 commit 9b0a71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vdb/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@ def to_dict(self):
"type": self.type,
"severity": str(self.severity),
"cvss_score": str(self.cvss_score),
"cvss_v3": self.cvss_v3.to_dict() if self.cvss_v3 else "",
"package_issue": self.package_issue.to_dict(),
"cvss_v3": self.cvss_v3.to_dict() if self.cvss_v3 else {},
"package_issue": self.package_issue.to_dict() if self.package_issue else {},
"short_description": self.short_description,
"long_description": self.long_description,
"related_urls": self.related_urls,
Expand Down

0 comments on commit 9b0a71b

Please sign in to comment.