From 2f666367cdf8366f70e8f2e1c6d9904d9bc025f7 Mon Sep 17 00:00:00 2001 From: SeungHyun Jeon Date: Wed, 26 May 2021 15:32:56 +0900 Subject: [PATCH] Fix watch ignore blank line in pod logs --- watch/watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch/watch.py b/watch/watch.py index 71fd459..82ebf31 100644 --- a/watch/watch.py +++ b/watch/watch.py @@ -63,8 +63,8 @@ def iter_resp_lines(resp): lines = lines[:-1] else: prev = "" - for line in lines: - if line: + for idx, line in enumerate(lines): + if line or idx == 0: yield line