diff --git a/mailman_sync.py b/mailman_sync.py index c599f90..18c0113 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -118,7 +118,7 @@ def sync_moderators( for member in members_to_remove: print(f"Removing {member} as moderator from list {list}") if not dry_run: - list.remove_moderator(member.address) + list.remove_moderator(member.address.email) def update_cloudflare_lists(