From fad0fa127e4a78c45c9912cce3e56e49cce29b1a Mon Sep 17 00:00:00 2001 From: ashnaaseth2325-oss Date: Sat, 28 Mar 2026 13:27:53 +0000 Subject: [PATCH] util: fix KeyError on missing last_log in genReport.py Initialize d["last_log"] = "" before the os.walk loop so that designs with no .log files report finished=False instead of crashing. Signed-off-by: Ashnaa Seth Signed-off-by: ashnaaseth2325-oss --- flow/util/genReport.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flow/util/genReport.py b/flow/util/genReport.py index 4856deff09..02b898775b 100755 --- a/flow/util/genReport.py +++ b/flow/util/genReport.py @@ -264,6 +264,7 @@ def write_summary(): # check if design ran to completion without errors or warnings d["log_errors"] = list() d["log_warnings"] = list() + d["last_log"] = "" for name_ in sorted(files): temp_e, temp_w = parse_messages(os.path.join(log_dir, name_)) d["log_errors"] += temp_e