Skip to content

Commit

Permalink
fix: revert get user data from Shad
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 13, 2025
1 parent 6802ae1 commit 52fe6fc
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions apps/accounts/views/uuid_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,14 @@ def handle_post(self, request, origin=""):
user.save()
response_status = status.HTTP_201_CREATED

# try:
# user_data = get_user_data_from_shad(
# user_uuid=user_identifier,
# landing_id=landing_id,
# )
# update_user_info_by_shad_data(user, user_data)
# except ValueError as e:
# pass
# # raise Exception('cant get data from Shad')
try:
user_data = get_user_data_from_shad(
user_uuid=user_identifier,
landing_id=landing_id,
)
update_user_info_by_shad_data(user, user_data)
except ValueError as e:
raise Exception(f'Cant get data from Shad. Error: {e}')

self.create_login_event(user, website)
return self.generate_response(user, created, response_status)

0 comments on commit 52fe6fc

Please sign in to comment.