Skip to content

Commit

Permalink
Merge pull request #134 from fosslight/null
Browse files Browse the repository at this point in the history
Fix the bug when nothing is detected
  • Loading branch information
soimkim authored Aug 14, 2023
2 parents a88aebf + bddf6a3 commit 32b1406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_source/_parsing_scancode_file_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def parsing_file_item(scancode_file_list, has_error, path_to_scan, need_matched_
rc = True
msg = []

first_item = next(iter(scancode_file_list or []), None)
first_item = next(iter(scancode_file_list or []), {})
if "licenses" in first_item:
rc, scancode_file_item, msg, license_list = parsing_scancode_32_earlier(scancode_file_list,
path_to_scan, has_error)
Expand Down

0 comments on commit 32b1406

Please sign in to comment.