Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGroundZero committed Sep 14, 2018
1 parent 3e5e869 commit 72a7faf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvasreporting/libs/parsed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ def __init__(self, vuln_id, name, threat, **kwargs):
"""
# Get info
cves = kwargs.get("cves", list()) or list()
cvss = kwargs.get("cvss", -1.0)
level = kwargs.get("level", "Low")
description = kwargs.get("description", "")
cvss = kwargs.get("cvss", -1.0) or -1.0
level = kwargs.get("level", "None") or "None"
description = kwargs.get("description", "") or ""
references = kwargs.get("references", list()) or list()
family = kwargs.get("family", "unknown") or "unknown"
family = kwargs.get("family", "Unknown") or "Unknown"

if not isinstance(vuln_id, str):
raise TypeError("Expected basestring, got '{}' instead".format(type(vuln_id)))
Expand Down

0 comments on commit 72a7faf

Please sign in to comment.