Skip to content

Commit

Permalink
Merge pull request #3894 from nickmango/bug/fetch-gh-user
Browse files Browse the repository at this point in the history
Bug/Fetch github user by email
  • Loading branch information
nickmango authored Apr 13, 2023
2 parents 367fb1b + 22ac61f commit 87783ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cla-backend/cla/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ def get_github_user_by_email(email):
github_client = github.Github()
try:
users = github_client.search_users(email)
if len(users) > 0:
if len(list(users)) > 0:
return users[0]
except Exception as e:
cla.log.warning(f'{fn} - unable to find github user by email: {email}, error: {e}')
Expand Down

0 comments on commit 87783ea

Please sign in to comment.