From 8f2597e40c6580d472ee2cd99cd555153f0fd6c6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 19 Jan 2024 23:15:51 -0500 Subject: [PATCH] Fix `remove_moderator` to use `Address.email` instead of `Address` --- mailman_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(