From: Michael Tremer Date: Mon, 22 Dec 2025 12:42:56 +0000 (+0000) Subject: sources: Don't try to strip empty domains X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=083b1556f6be8a9eacc6e89a5ae6ebf5114c27d8;p=dbl.git sources: Don't try to strip empty domains Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index c5441db..54b1656 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -211,7 +211,8 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): continue # Strip any whitespace - domain = domain.strip() + if domain: + domain = domain.strip() # Skip the line if no domain could be extracted if not domain: