From ee1985cc0b96feb1254a6611993aa8cfae0de652 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 26 Aug 2019 18:15:54 +0200 Subject: [PATCH] Fix typo --- wo/core/domainvalidate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wo/core/domainvalidate.py b/wo/core/domainvalidate.py index 750622e..97f6003 100644 --- a/wo/core/domainvalidate.py +++ b/wo/core/domainvalidate.py @@ -38,14 +38,14 @@ def GetDomainlevel(domain): "/var/lib/wo/public_suffix_list.dat", "r") # Read all the lines into a list. for domain_suffix in Suffix_file: - if (str(domain_suffix).strip()) == ('.'.join(testing_domain[1:])): + if (str(domain_suffix).strip()) == ('.'.join(domain_name[1:])): domain_type = 'domain' break - elif (str(domain_suffix).strip()) == ('.'.join(testing_domain[2:]): - domain_type='subdomain' + elif (str(domain_suffix).strip()) == ('.'.join(domain_name[2:])): + domain_type = 'subdomain' break else: - domain_type='other' + domain_type = 'other' Suffix_file.close() return (domain_type)