Skip to content

Commit 9ebfa0b

Browse files
Remove redundant raise
1 parent e34866e commit 9ebfa0b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/models.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ def get(email):
4848
return User.query.filter_by(email_normalized=email_normalized).scalar()
4949

5050
def set_email(self, email):
51-
try:
52-
self.email_normalized = self._normalize_email(email)
53-
self.email = email
54-
except EmailNotValidError as e:
55-
raise e
51+
self.email_normalized = self._normalize_email(email)
52+
self.email = email
5653

5754
def set_password(self, password):
5855
# scrypt stores salt with the hash, which it uses to verify the password

0 commit comments

Comments
 (0)