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: