We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c8b583 + 6b18250 commit 57e31f0Copy full SHA for 57e31f0
cyclonedx/bom/reader.py
@@ -64,7 +64,7 @@ def get_component(req, package_info_url=DEFAULT_PACKAGE_INFO_URL):
64
component.description = package_info["info"]["summary"]
65
# TODO: Attempt to perform SPDX license ID resolution
66
package_license = package_info["info"]["license"]
67
- if package_license != 'UNKNOWN' and len(package_license.strip()) > 0:
+ if package_license and package_license != 'UNKNOWN' and len(package_license.strip()) > 0:
68
license = License(name=package_license)
69
component_license = ComponentLicense(license=license)
70
component.licenses.append(component_license)
0 commit comments