(self)
| 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): |