Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cve_bin_tool/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def find_vendor_from_purl(self, purl, ver) -> tuple[list[ScanInfo], bool]:

return vendorlist, True
except Exception as e:
self.logger.debug(f"Error occurred: {e}")
self.logger.error("Unable to access purl2cpe database.")
self.logger.debug(f"Error occurred: {e} - Unable to access purl2cpe database.")
return [], False

def mismatch(self, purl, vendorlist) -> list[ScanInfo]:
Expand Down Expand Up @@ -205,8 +204,7 @@ def mismatch(self, purl, vendorlist) -> list[ScanInfo]:
)
return vendorlist_filtered
except Exception as e:
self.logger.debug(f"error: {e}")
self.logger.error("Unable to access mismatch database.")
self.logger.debug(f"error: {e} - Unable to access mismatch database.")
return vendorlist

def db_open_and_get_cursor(self) -> sqlite3.Cursor:
Expand Down
Loading