From: Michael Tremer Date: Mon, 6 Jan 2025 11:00:10 +0000 (+0000) Subject: importer: Ignore any sudden disconnects when we fetch a Geofeed X-Git-Tag: 0.9.18~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=895e2a4a2fc36e187a627ebe3403f348d4f9bd45;p=location%2Flibloc.git importer: Ignore any sudden disconnects when we fetch a Geofeed Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 3e651b4..b6f2fa5 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -1973,7 +1973,7 @@ class CLI(object): WHERE geofeed_id = %s", geofeed.id) # Catch any other errors and connection timeouts - except (http.client.InvalidURL, urllib.request.URLError, TimeoutError) as e: + except (http.client.InvalidURL, http.client.RemoteDisconnected, 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 \