Skip to content

Commit

Permalink
hotfix: fix a bug in creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 6, 2025
1 parent 7d69283 commit 5d09736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/accounts/utils/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def find_user_in_website(user_data, website, raise_exception=False):

def create_or_get_user(user_data, website):
user = find_user(user_data=user_data)
has_user_website = bool(user.get_user_website(website=website))
has_user_website = bool(user and user.get_user_website(website=website))

if user and has_user_website:
return user, False
Expand Down

0 comments on commit 5d09736

Please sign in to comment.