Skip to content

Commit

Permalink
Fix when group no longer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Nov 4, 2024
1 parent 0ac1a25 commit 776d7ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dispatch/plugins/dispatch_google/groups/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ def remove_member(client: Any, group_key: str, email: str):
f"Member does not exist in google group. GroupKey={group_key} MemberKey={email}"
)
return
elif e.resp.status in [404]:
log.debug(
f"Group does not exist. GroupKey={group_key} Trying to remove MemberKey={email}"
)
return


def list_members(client: Any, group_key: str, **kwargs):
Expand Down

0 comments on commit 776d7ee

Please sign in to comment.