From: Michael Tremer Date: Sat, 28 Sep 2019 19:01:23 +0000 (+0000) Subject: Fix downloading databases in the default format X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf9fc3d764462891886e82cacf33497a3deee245;p=location%2Flocation-database.git Fix downloading databases in the default format Signed-off-by: Michael Tremer --- diff --git a/tools/downloader.py b/tools/downloader.py index 56714ef..6cc738e 100644 --- a/tools/downloader.py +++ b/tools/downloader.py @@ -89,7 +89,10 @@ class DownloaderContext(object): Makes the object iterable by going through each block """ if self.return_blocks: - return util.iterate_over_blocks(self.body) + for b in util.iterate_over_blocks(self.body): + yield b + + return # Store body body = self.body