diff --git a/bots/log2zulip b/bots/log2zulip index 1dc0ad0..2c3bfac 100755 --- a/bots/log2zulip +++ b/bots/log2zulip @@ -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)