mirror of https://github.com/zulip/zulip.git
forms: Use an AssertionError for unexpected DNS errors.
This commit is contained in:
parent
94d188fd7d
commit
cd95c09fca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue