From 0b9bd7e5d1d6c8e7b2a1c77477fb7e07f4aec632 Mon Sep 17 00:00:00 2001 From: Eric Newcomer Date: Sat, 22 Feb 2025 21:43:52 +0000 Subject: [PATCH] Remove unnecessary assertion --- temba/users/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/temba/users/models.py b/temba/users/models.py index 9e48e4e6b7..2c2e8b9171 100644 --- a/temba/users/models.py +++ b/temba/users/models.py @@ -57,8 +57,6 @@ def create_user(self, email, password, **extra_fields): """ Create and save a user with the given email and password. """ - if not email: - raise ValueError(_("The Email must be set")) email = self.normalize_email(email) user = self.model(email=email, **extra_fields) user.set_password(password)