diff --git a/dojo/tools/rapplex/parser.py b/dojo/tools/rapplex/parser.py index 8dd77c69e25..aa2569998d1 100644 --- a/dojo/tools/rapplex/parser.py +++ b/dojo/tools/rapplex/parser.py @@ -17,9 +17,8 @@ def get_label_for_scan_types(self, scan_type): def get_description_for_scan_types(self, scan_type): return "Import Rapplex JSON report." - def get_findings(self, file, test): - raw_data = file.read() - data = json.loads(raw_data) + def get_findings(self, filename, test): + data = json.load(filename) findings = [] severities = ["Information", "Low", "Medium", "High", "Critical"]