From: Michael Tremer Date: Tue, 30 Jan 2018 14:01:38 +0000 (+0000) Subject: downloader: Only return blocks with content in them X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a251a4d2fe5bc938451f83753cc604f69cc88bc;p=location%2Flocation-database.git downloader: Only return blocks with content in them Signed-off-by: Michael Tremer --- 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 = []