def METHOD_NAME(value):
    ban = get_email_ban(value, registration_only=True)
    if ban:
        if ban.user_message:
            raise ValidationError(ban.user_message)
        else:
            raise ValidationError(
                pgettext_lazy(
                    "user email validator", "This e-mail address is not allowed."
                )
            )