From cd95c09fca92db7a49d8c40077abcf7fc0e7e640 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 17 Nov 2017 17:25:44 -0800 Subject: [PATCH] forms: Use an AssertionError for unexpected DNS errors. --- zerver/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/forms.py b/zerver/forms.py index 5575dd3657..f969a84ef5 100644 --- a/zerver/forms.py +++ b/zerver/forms.py @@ -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