This commit is contained in:
Jing Ling
2020-08-29 18:07:17 +08:00
parent ada147e8cd
commit 4f90548d8a
+2 -2
View File
@@ -39,10 +39,10 @@ class Domain(object):
"""
data_storage_dir = settings.data_storage_dir
extract_cache_file = data_storage_dir.joinpath('public_suffix_list.dat')
tldext = tldextract.TLDExtract(extract_cache_file, None)
ext = tldextract.TLDExtract(extract_cache_file, None)
result = self.match()
if result:
return tldext(result)
return ext(result)
else:
return None