From 9555fa3b9d9f80c3fd483f3f0c33bdc0efc9c7d6 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 30 Jan 2024 10:19:09 +0100 Subject: [PATCH] fix: [DomClassifier] remove empty tld --- DomainClassifier/domainclassifier.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DomainClassifier/domainclassifier.py b/DomainClassifier/domainclassifier.py index 2d35b31..e417fa2 100644 --- a/DomainClassifier/domainclassifier.py +++ b/DomainClassifier/domainclassifier.py @@ -123,7 +123,8 @@ class Extract: f.close() tlds = tlds.split("\n") for tld in tlds: - self.listtld.append(tld.lower()) + if tld: + self.listtld.append(tld.lower()) def __listtld(self): if not self.listtld: