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 c7476e3 commit 818af18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "5.5.4"
version = "5.5.5"
description = "AppThreat's vulnerability database and package search library with a built-in file based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "cloud@appthreat.com"},
Expand Down
2 changes: 1 addition & 1 deletion vdb/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def to_dict(self):
"type": self.type,
"severity": str(self.severity),
"cvss_score": str(self.cvss_score),
"cvss_v3": self.cvss_v3.to_dict(),
"cvss_v3": self.cvss_v3.to_dict() if self.cvss_v3 else "",
"package_issue": self.package_issue.to_dict(),
"short_description": self.short_description,
"long_description": self.long_description,
Expand Down

0 comments on commit 818af18

Please sign in to comment.