3rd-party-integrations / github-team-sync

Sync GitHub teams to groups in Active Directory, LDAP, Okta, OneLogin or AzureAD when using any authentication method for GitHub.
MIT License
201 stars 67 forks source link

Improve error handling in Okta module #121

Closed kristian-lesko closed 2 years ago

kristian-lesko commented 2 years ago

The original error handling logic was sometimes throwing errors due to log:

File "githubapp/okta.py", line 76, in get_group_members
    print(f"{user.links['self']['href']}: {e}")
TypeError: 'NoneType' object is not subscriptable