We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4576548 commit aa8d641Copy full SHA for aa8d641
1 file changed
dojo/tools/openvas/parser_v2/csv_parser.py
@@ -20,7 +20,8 @@
20
def get_findings_from_csv(file, test) -> list[Finding]:
21
"""Returns list of findings as defectdojo factory contract expects"""
22
dupes = {}
23
- file = io.TextIOWrapper(file, encoding="utf-8")
+ if not isinstance(file, io.TextIOWrapper):
24
+ file = io.TextIOWrapper(file, encoding="utf-8")
25
csv_reader = csv.reader(file, delimiter=",", quotechar='"')
26
column_names = [column_name.lower() for column_name in next(csv_reader) if column_name]
27
0 commit comments