Addresses CDN-1093 ('San certs not created due to tld issues')

Change-Id: I7f2bb23d63da7a7c37e0968fdbcf4ed2beba0dfe
This commit is contained in:
Mohan Madhavan 2017-04-07 10:47:23 -05:00
parent e38b0e7727
commit aca93437bb
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ def is_valid_shared_ssl_domain_name(domain_name):
def is_valid_tld(domain_name):
try:
status = whois.whois(domain_name)['status']
if status is not None or status != '':
whois_rec = whois.whois(domain_name)
if whois_rec:
url = 'https://{domain}'
tld_obj = tld_helper.get_tld(
url.format(domain=domain_name),