Skip to content

Commit 6bb198c

Browse files
committed
Handle multi license correctly.
1 parent 17e060e commit 6bb198c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

about_code_tool/genabout.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,11 @@ def pre_process_and_dje_license_dict(self, input_list, api_url, api_username, ap
461461
detail_list.append(license_context)
462462
key_text_dict[detail[0]] = detail_list
463463
else:
464-
line['dje_license_name'] = license_dict[lic]
464+
try:
465+
if line['dje_license_name']:
466+
line['dje_license_name'] += "\n " + license_dict[lic]
467+
except:
468+
line['dje_license_name'] = license_dict[lic]
465469
except Exception:
466470
err = Warn('dje_license', '',
467471
'Missing "dje_license" for ' + line['about_file'])

0 commit comments

Comments
 (0)