Skip to content

Commit fad0fa1

Browse files
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 <ashnaaseth2325@gmail.com> Signed-off-by: ashnaaseth2325-oss <ashnaaseth2325@gmail.com>
1 parent 95edb4d commit fad0fa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow/util/genReport.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ def write_summary():
264264
# check if design ran to completion without errors or warnings
265265
d["log_errors"] = list()
266266
d["log_warnings"] = list()
267+
d["last_log"] = ""
267268
for name_ in sorted(files):
268269
temp_e, temp_w = parse_messages(os.path.join(log_dir, name_))
269270
d["log_errors"] += temp_e

0 commit comments

Comments
 (0)