From 895e2a4a2fc36e187a627ebe3403f348d4f9bd45 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 6 Jan 2025 11:00:10 +0000 Subject: [PATCH] importer: Ignore any sudden disconnects when we fetch a Geofeed Signed-off-by: Michael Tremer --- src/scripts/location-importer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.47.3