Skip to content

Commit 32b1406

Browse files
authored
Merge pull request #134 from fosslight/null
Fix the bug when nothing is detected
2 parents a88aebf + bddf6a3 commit 32b1406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_source/_parsing_scancode_file_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def parsing_file_item(scancode_file_list, has_error, path_to_scan, need_matched_
300300
rc = True
301301
msg = []
302302

303-
first_item = next(iter(scancode_file_list or []), None)
303+
first_item = next(iter(scancode_file_list or []), {})
304304
if "licenses" in first_item:
305305
rc, scancode_file_item, msg, license_list = parsing_scancode_32_earlier(scancode_file_list,
306306
path_to_scan, has_error)

0 commit comments

Comments
 (0)