Skip to content

Commit

Permalink
Make aliases a list if empty #56
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne authored Jun 10, 2021
1 parent ef9b2df commit 3487a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/license_expression/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def build_spdx_licensing(license_index):
lics = [
{
'key': l.get('spdx_license_key', ''),
'aliases': l.get('other_spdx_license_keys', ''),
'aliases': l.get('other_spdx_license_keys', []),
'is_exception': l.get('is_exception', ''),
} for l in license_index
if l.get('spdx_license_key')
Expand Down

0 comments on commit 3487a13

Please sign in to comment.