Skip to content

Commit

Permalink
Remove unnecessary assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnewcomer committed Feb 22, 2025
1 parent d4983f5 commit 0b9bd7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions temba/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b9bd7e

Please sign in to comment.