File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
vulnerabilities/importers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 66# See https://github.com/nexB/vulnerablecode for support or download.
77# See https://aboutcode.org for more information about nexB OSS projects.
88#
9+ import logging
910import re
1011from pathlib import Path
1112from typing import Iterable
1617from vulnerabilities .utils import build_description
1718from vulnerabilities .utils import dedupe
1819
20+ logger = logging .getLogger (__name__ )
21+
1922
2023class FireyeImporter (GitImporter ):
2124 spdx_license_expression = "CC-BY-SA-4.0 AND MIT"
@@ -36,8 +39,7 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
3639 with open (file ) as f :
3740 yield parse_advisory_data (f .read ())
3841 except UnicodeError :
39- print (file )
40-
42+ logger .error (f"Invalid file { file } " )
4143
4244
4345def parse_advisory_data (raw_data ) -> AdvisoryData :
You can’t perform that action at this time.
0 commit comments