Skip to content

Commit

Permalink
Propagate errors back to remove_member (#5372)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Oct 23, 2024
1 parent 9f7ecd7 commit 6651c01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dispatch/plugins/dispatch_google/groups/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def add_member(client: Any, group_key: str, email: str, role: str):
def remove_member(client: Any, group_key: str, email: str):
"""Removes member from google group."""
try:
return make_call(client.members(), "delete", groupKey=group_key, memberKey=email)
return make_call(
client.members(), "delete", groupKey=group_key, memberKey=email, propagate_errors=True
)
except HttpError as e:
if e.resp.status in [409]:
log.debug(
Expand Down

0 comments on commit 6651c01

Please sign in to comment.