Skip to content

Commit 145cb4b

Browse files
committed
Fix KeyError in Fireeye Importer
Signed-off-by: Harsh Mishra <hmisraji07@gmail.com>
1 parent d9ea936 commit 145cb4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vulnerabilities/importers/fireeye.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
5353
if Path(file).stem == "README":
5454
continue
5555
try:
56-
with open(file) as f:
56+
with open(file, encoding="utf-8-sig") as f:
5757
yield parse_advisory_data(raw_data=f.read(), file=file, base_path=base_path)
5858
except UnicodeError:
5959
logger.error(f"Invalid file {file}")

0 commit comments

Comments
 (0)