Skip to content

Commit

Permalink
Google Directory: Fix crash if there's a group don't have members (#6930
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nauxliu committed Oct 21, 2021
1 parent d660661 commit 8a54f1b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ def list(self, fields: Sequence[str] = None) -> Iterator[dict]:

class GroupMembersAPI(StreamAPI):
def process_response(self, response: Dict) -> Iterator[dict]:
return response["members"]
return response.get("members", [])

def list(self, fields: Sequence[str] = None) -> Iterator[dict]:
groups = GroupsAPI(self._api)
Expand Down

0 comments on commit 8a54f1b

Please sign in to comment.