MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / __init__

Method __init__

vulnerabilities/importer.py:753–762  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

751 importer_name = ""
752
753 def __init__(self):
754 if not self.spdx_license_expression:
755 raise Exception(f"Cannot run importer {self!r} without a license")
756 licensing = Licensing()
757 try:
758 licensing.parse(self.spdx_license_expression)
759 except InvalidSPDXLicense as e:
760 raise ValueError(
761 f"{self.spdx_license_expression!r} is not a valid SPDX license expression"
762 ) from e
763
764 @classproperty
765 def qualified_name(cls):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected