Skip to content

Commit 3487a13

Browse files
authored
Make aliases a list if empty #56
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent ef9b2df commit 3487a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/license_expression/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def build_spdx_licensing(license_index):
764764
lics = [
765765
{
766766
'key': l.get('spdx_license_key', ''),
767-
'aliases': l.get('other_spdx_license_keys', ''),
767+
'aliases': l.get('other_spdx_license_keys', []),
768768
'is_exception': l.get('is_exception', ''),
769769
} for l in license_index
770770
if l.get('spdx_license_key')

0 commit comments

Comments
 (0)