Skip to content

Commit 1eac5ab

Browse files
RobbilieJared Murrell
authored andcommitted
skip users without attribute
1 parent 4f1fa98 commit 1eac5ab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

githubapp/azuread.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def get_group_members(self, token=None, group_name=None):
102102
username = user_info["onPremisesExtensionAttributes"][
103103
self.USERNAME_ATTRIBUTE
104104
]
105+
if username is None:
106+
continue
105107
else:
106108
username = user_info[self.USERNAME_ATTRIBUTE]
107109
if self.AZURE_USER_IS_UPN:

0 commit comments

Comments
 (0)