Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions src/licensedcode/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ def build_spdx_license_expression(license_expression, licensing=None):
>>> spdx = "MIT OR GPL-2.0-only WITH LicenseRef-scancode-generic-exception"
>>> assert build_spdx_license_expression(exp) == spdx
"""
if not license_expression:
return

if not licensing:
licensing = get_licensing()
validate_spdx_license_keys(license_expression=license_expression, licensing=licensing)
Expand Down
2 changes: 1 addition & 1 deletion src/licensedcode/data/rules/lead-in_unknown_43.RULE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
license_expression: unknown-license-reference
is_license_tag: yes
is_license_clue: yes
relevance: 60
notes: Creative commons tag seen in RDF or XML documents
---
Expand Down
Loading
Loading