Skip to content

Commit

Permalink
Fix the bug when nothing is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
soimkim committed Aug 14, 2023
1 parent a88aebf commit bddf6a3
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 bddf6a3

Please sign in to comment.