Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Feb 14, 2024
1 parent 56a28e6 commit 46e0ff1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions dojo/tools/tenable/xml_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ def get_findings(self, filename: str, test: Test) -> list:
cvssv3_score = cvssv3_score_element_text

cvss = self.safely_get_element_text(item.find("cvss3_base_score"))
if cvss != None:
print(cvss)
if cvss is not None:
severity = self.get_cvss_severity(cvss)

# Determine the current entry has already been parsed in
Expand Down
1 change: 0 additions & 1 deletion unittests/tools/test_tenable_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def test_parse_some_findings_csv_nessus_legacy(self):
self.assertEqual("CVE-2004-2761", finding.unsaved_vulnerability_ids[0])
# this vuln have 'CVE-2013-2566,CVE-2015-2808' as CVE
finding = findings[3]
print(f"finding.unsaved_vulnerability_ids: {finding.unsaved_vulnerability_ids} - {type(finding.unsaved_vulnerability_ids)} - {type(finding.unsaved_vulnerability_ids[0])}")
self.assertEqual(2, len(finding.unsaved_vulnerability_ids))
self.assertEqual("CVE-2013-2566", finding.unsaved_vulnerability_ids[0])
self.assertEqual("CVE-2015-2808", finding.unsaved_vulnerability_ids[1])
Expand Down

0 comments on commit 46e0ff1

Please sign in to comment.