There was an error while loading. Please reload this page.
1 parent d9ea936 commit 145cb4bCopy full SHA for 145cb4b
1 file changed
vulnerabilities/importers/fireeye.py
@@ -53,7 +53,7 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
53
if Path(file).stem == "README":
54
continue
55
try:
56
- with open(file) as f:
+ with open(file, encoding="utf-8-sig") as f:
57
yield parse_advisory_data(raw_data=f.read(), file=file, base_path=base_path)
58
except UnicodeError:
59
logger.error(f"Invalid file {file}")
0 commit comments