From: Michael Tremer Date: Fri, 27 Feb 2026 09:21:52 +0000 (+0000) Subject: sources: Ignore if the server suddenly closes the connection X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0184c465a51a04a08dc26ed850d98d6ea6fb4e9;p=dbl.git sources: Ignore if the server suddenly closes the connection Signed-off-by: Michael Tremer --- diff --git a/src/dbl/sources.py b/src/dbl/sources.py index 9e88b94..b6d09f2 100644 --- a/src/dbl/sources.py +++ b/src/dbl/sources.py @@ -347,6 +347,12 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): return False + # Ignore if the connection got interrupted + except httpx.RemoteProtocolError as e: + log.warning("Server suddenly closed the connection: %s" % e) + + return False + # Mark all domains that have not been updated as removed await self.__prune()