From 6a251a4d2fe5bc938451f83753cc604f69cc88bc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 30 Jan 2018 14:01:38 +0000 Subject: [PATCH] downloader: Only return blocks with content in them Signed-off-by: Michael Tremer --- tools/downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/downloader.py b/tools/downloader.py index 47e2f34..af9cdf6 100644 --- a/tools/downloader.py +++ b/tools/downloader.py @@ -107,7 +107,8 @@ class DownloaderContext(object): continue # End the block on an empty line - yield block + if block: + yield block # Reset the block block = [] -- 2.47.3