]> git.ipfire.org Git - dbl.git/commitdiff
sources: Don't try to strip empty domains
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Dec 2025 12:42:56 +0000 (12:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Dec 2025 12:42:56 +0000 (12:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/sources.py

index c5441db683855dfaf33742ec10440b2959e0ff85..54b16560688cce5e6187cef32f1d58faea3fff82 100644 (file)
@@ -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: