]> git.ipfire.org Git - location/location-database.git/blobdiff - tools/downloader.py
downloader: Only return blocks with content in them
[location/location-database.git] / tools / downloader.py
index 47e2f341a2eda2a909bf787f42e8233d16817ea2..af9cdf64a32dd76524faf80f60d7bcd0eef49ec1 100644 (file)
@@ -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 = []