From: Michael Tremer Date: Tue, 27 Sep 2022 07:58:41 +0000 (+0000) Subject: importer: Just fetch any exception from the executor X-Git-Tag: 0.9.17~29^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa33b3215d16d1045c6dc5513d93d2407d7deb37;p=people%2Fms%2Flibloc.git importer: Just fetch any exception from the executor Any exceptions will only be raised in the main thread when they are fetched from the executor. We do not need to print any other return values here. Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index ddec376..014f3b6 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -1297,8 +1297,9 @@ class CLI(object): with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: results = executor.map(self._fetch_geofeed, geofeeds) + # Fetch all results to raise any exceptions for result in results: - print(result) + pass def _fetch_geofeed(self, geofeed): log.debug("Fetching Geofeed %s" % geofeed.url)