Skip to content

Commit 7f5d7b1

Browse files
Users hotfix (#273)
1 parent a1711af commit 7f5d7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/user/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ def __migrate_kratos_users():
127127

128128
for user_database in users_database:
129129
user_id = str(user_database.id)
130-
user_identity = users_kratos[user_id]["identity"]
131-
if users_kratos[user_id] is None:
130+
if user_id not in users_kratos or users_kratos[user_id] is None:
132131
continue
132+
user_identity = users_kratos[user_id]["identity"]
133133
if user_database.email != user_identity["traits"]["email"]:
134134
user_database.email = user_identity["traits"]["email"]
135135
if (

0 commit comments

Comments
 (0)