Don't send a Zulip notification about 0 lines.
(imported from commit cc8ce4d95978264cd05bc26f77a5d770abdf5add)
This commit is contained in:
parent
2aef11b064
commit
775b9cc8bb
|
@ -43,7 +43,9 @@ def process_lines(raw_lines, file_name):
|
|||
continue
|
||||
lines.append(line)
|
||||
|
||||
if len(lines) > 10:
|
||||
if len(lines) == 0:
|
||||
return
|
||||
elif len(lines) > 10:
|
||||
send_log_zulip(file_name, len(lines), lines[0:3], extra=", examples include")
|
||||
else:
|
||||
send_log_zulip(file_name, len(lines), lines)
|
||||
|
|
Loading…
Reference in a new issue