diff --git a/dojo/importers/default_importer.py b/dojo/importers/default_importer.py index d127ed33f6a..726e55717eb 100644 --- a/dojo/importers/default_importer.py +++ b/dojo/importers/default_importer.py @@ -108,7 +108,7 @@ def process_scan( parser = self.get_parser() # Get the findings from the parser based on what methods the parser supplies # This could either mean traditional file parsing, or API pull parsing - parsed_findings = self.parse_findings(scan, parser) + parsed_findings = self.parse_findings(scan, parser) or [] # process the findings in the foreground or background new_findings = self.determine_process_method(parsed_findings, **kwargs) # Close any old findings in the processed list if the the user specified for that diff --git a/dojo/importers/default_reimporter.py b/dojo/importers/default_reimporter.py index 7adb2c65c48..17775eb22ae 100644 --- a/dojo/importers/default_reimporter.py +++ b/dojo/importers/default_reimporter.py @@ -93,7 +93,7 @@ def process_scan( parser = self.get_parser() # Get the findings from the parser based on what methods the parser supplies # This could either mean traditional file parsing, or API pull parsing - parsed_findings = self.parse_findings(scan, parser) + parsed_findings = self.parse_findings(scan, parser) or [] # process the findings in the foreground or background ( new_findings,