Skip to content

Commit 1c4863d

Browse files
committed
Do not print empty parsing messages
1 parent 8aa4122 commit 1c4863d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fosslight_source/run_scancode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def run_scan(path_to_scan, output_file_name="",
9191
msg = "Failed to analyze :" + error_msg
9292
if "files" in results:
9393
rc, result_list, parsing_msg, license_list = parsing_file_item(results["files"], has_error, need_license)
94-
_result_log["Parsing Log"] = parsing_msg
94+
if parsing_msg:
95+
_result_log["Parsing Log"] = parsing_msg
9596
if rc:
9697
if not success:
9798
success = True

0 commit comments

Comments
 (0)