forms: Use an AssertionError for unexpected DNS errors.

This commit is contained in:
Tim Abbott 2017-11-17 17:25:44 -08:00
parent 94d188fd7d
commit cd95c09fca
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def email_is_not_mit_mailing_list(email):
if e.rcode == DNS.Status.NXDOMAIN:
raise ValidationError(mark_safe(MIT_VALIDATION_ERROR))
else:
raise
raise AssertionError("Unexpected DNS error")
def check_subdomain_available(subdomain):
# type: (str) -> None