Skip to content

Commit

Permalink
Merge pull request #33 from MksYi/master
Browse files Browse the repository at this point in the history
Fixed TabError
  • Loading branch information
MarioVilas committed Mar 12, 2019
2 parents 21b2b11 + 4fdb81a commit bd65070
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 247 deletions.
22 changes: 11 additions & 11 deletions openvas_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,17 +367,17 @@ def report_parser(path_or_file, ignore_log_info=True):
logging.debug(e)
continue

# --------------------------------------------------------------------------
# Severity
# --------------------------------------------------------------------------
elif l_tag == "severity":
try:
l_severity = l_val.text
l_partial_result.severity = l_severity
except TypeError as e:
logging.warning("%s is not a valid severity, skipping vulnerability..." % l_severity)
logging.debug(e)
continue
# --------------------------------------------------------------------------
# Severity
# --------------------------------------------------------------------------
elif l_tag == "severity":
try:
l_severity = l_val.text
l_partial_result.severity = l_severity
except TypeError as e:
logging.warning("%s is not a valid severity, skipping vulnerability..." % l_severity)
logging.debug(e)
continue

# --------------------------------------------------------------------------
# Unknown tags
Expand Down

0 comments on commit bd65070

Please sign in to comment.