Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/dispatch/plugins/dispatch_google/groups/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ def remove_member(client: Any, group_key: str, email: str):

def list_members(client: Any, group_key: str, **kwargs):
"""Lists all members of google group."""
return make_call(client.members(), "list", groupKey=group_key, **kwargs)
try:
return make_call(client.members(), "list", groupKey=group_key, **kwargs)
except HttpError as e:
if e.resp.status in [404]:
Comment thread
whitdog47 marked this conversation as resolved.
log.debug(f"Group does not exist. GroupKey={group_key} Trying to list members.")
return
else:
raise e


def create_group(client: Any, name: str, email: str, description: str):
Expand Down
Loading