Skip to content

Commit 0809c56

Browse files
authored
Revert "Recognize .nessus file names (DefectDojo#4397)" (DefectDojo#4401)
This reverts commit 7e9e984.
1 parent 7e9e984 commit 0809c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dojo/tools/nessus/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ def get_description_for_scan_types(self, scan_type):
246246

247247
def get_findings(self, filename, test):
248248

249-
if filename.name.lower().endswith('.xml') or filename.name.lower().endswith('.nessus'):
249+
if filename.name.lower().endswith('.xml'):
250250
return NessusXMLParser().get_findings(filename, test)
251251
elif filename.name.lower().endswith('.csv'):
252252
return NessusCSVParser().get_findings(filename, test)
253253
else:
254-
raise ValueError('Filename extension not recognized. Use .xml, .nessus or .csv')
254+
raise ValueError('Unknown File Format')

0 commit comments

Comments
 (0)