mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-12-04 07:47:13 +00:00
fix: [DomClassifier] remove empty tld
This commit is contained in:
parent
83e9efbf2d
commit
9555fa3b9d
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ class Extract:
|
||||||
f.close()
|
f.close()
|
||||||
tlds = tlds.split("\n")
|
tlds = tlds.split("\n")
|
||||||
for tld in tlds:
|
for tld in tlds:
|
||||||
self.listtld.append(tld.lower())
|
if tld:
|
||||||
|
self.listtld.append(tld.lower())
|
||||||
|
|
||||||
def __listtld(self):
|
def __listtld(self):
|
||||||
if not self.listtld:
|
if not self.listtld:
|
||||||
|
|
Loading…
Reference in a new issue