zilencer: Fix typo in variable name.

This commit is contained in:
Alex Vandiver 2024-05-23 18:30:12 +00:00 committed by Tim Abbott
parent 9d66a8eb73
commit 9388805471
1 changed files with 4 additions and 4 deletions

View File

@ -172,12 +172,12 @@ def register_remote_server(
# Check if the domain has an MX record
try:
records = DNS.mxlookup(contact_email_domain)
dns_ms_check_successful = True
dns_mx_check_successful = True
if not records:
dns_ms_check_successful = False
dns_mx_check_successful = False
except DNS.Base.ServerError:
dns_ms_check_successful = False
if not dns_ms_check_successful:
dns_mx_check_successful = False
if not dns_mx_check_successful:
raise JsonableError(
_("{domain} does not exist or is not configured to accept email.").format(
domain=contact_email_domain