Skip to content

Commit 0a94308

Browse files
authored
Merge pull request #4068 from ashnaaseth2325-oss/fix/genreport-last-log-keyerror
fix(genReport): prevent KeyError when no .log files by initializing `last_log`
2 parents 1af5ac2 + fad0fa1 commit 0a94308

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)