Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
import argparse
import concurrent.futures
+import http.client
import ipaddress
import json
import logging
WHERE geofeed_id = %s", geofeed.id)
# Catch any other errors and connection timeouts
- except (urllib.request.URLError, TimeoutError) as e:
+ except (http.client.InvalidURL, urllib.request.URLError, TimeoutError) as e:
log.debug("Could not fetch URL %s: %s" % (geofeed.url, e))
self.db.execute("UPDATE geofeeds SET status = %s, error = %s \