Merge pull request #8 from Terrtia/master

Remove empty tld
This commit is contained in:
Alexandre Dulaunoy 2024-01-31 21:53:37 +01:00 committed by GitHub
commit d3f8129399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: