best-caf-kernel: Fix crash when there are no lines changed

Change-Id: I6d0539f8b2d07e25fc92937d280f4255a7800d71
This commit is contained in:
Michael Bestas
2022-11-19 00:16:44 +02:00
parent 19fdf91811
commit 6425bee35f

View File

@@ -66,6 +66,8 @@ def background(q, e, s):
if e.is_set():
break
else:
if tc is None:
tc = 0;
if not s:
print("%s has %d lines changed" % (tn, tc))
if best > tc: