Skip to content

Commit e2842f4

Browse files
committed
Fixed error
1 parent 79b72ec commit e2842f4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backend/app/tests/utils/user.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ def authentication_token_from_email(
4545
user = crud.create_user(session=db, user_create=user_in_create)
4646
else:
4747
user_in_update = UserUpdate(password=password)
48-
if user.id is None:
49-
msg = "User id not set"
50-
raise ValueError(msg)
5148
user = crud.update_user(session=db, db_user=user, user_in=user_in_update)
5249

5350
return user_authentication_headers(client=client, email=email, password=password)

0 commit comments

Comments
 (0)