Skip to content

Commit 49c1516

Browse files
committed
bug fix
* Need to clear/reset the lic_name_expression_list before working on the next about object. Signed-off-by: Chin Yeung Li <[email protected]>
1 parent e3cab79 commit 49c1516

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributecode/attrib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def generate(abouts, is_about_input, license_dict, scancode, min_license_score,
149149

150150
for about in abouts:
151151
# Create a license expression with license name
152+
lic_name_expression = ''
153+
lic_name_expression_list = []
152154
if about.license_expression.value:
153155
for segment in about.license_expression.value.split():
154156
not_lic = True

0 commit comments

Comments
 (0)