fix: Error with only hns site trying to get icann email
This commit is contained in:
parent
b4d813715c
commit
48ac02b8d0
2
sites.py
2
sites.py
@ -267,6 +267,8 @@ def write_nginx_conf(site):
|
|||||||
for alt in site['alt_domains']:
|
for alt in site['alt_domains']:
|
||||||
if is_icann(alt):
|
if is_icann(alt):
|
||||||
icann_domains.append(alt)
|
icann_domains.append(alt)
|
||||||
|
|
||||||
|
if len(icann_domains) > 0:
|
||||||
email = f'admin@{icann_domains[0]}'
|
email = f'admin@{icann_domains[0]}'
|
||||||
icann_domains = " -d ".join(icann_domains)
|
icann_domains = " -d ".join(icann_domains)
|
||||||
icann_domains = f'-d {icann_domains}'
|
icann_domains = f'-d {icann_domains}'
|
||||||
|
Loading…
Reference in New Issue
Block a user