aboutsummaryrefslogtreecommitdiffstats
path: root/bin/sync_members
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-02-29 09:47:36 -0800
committerMark Sapiro <mark@msapiro.net>2008-02-29 09:47:36 -0800
commitd14353a411404216f3d93d7397d91647b0959da5 (patch)
tree67fd659bc1cd5a896876b3ee8b8df3f223783ecd /bin/sync_members
parent7acc4e9c0f3bce4831ca1399fa7aade621ed6b70 (diff)
downloadmailman2-d14353a411404216f3d93d7397d91647b0959da5.tar.gz
mailman2-d14353a411404216f3d93d7397d91647b0959da5.tar.xz
mailman2-d14353a411404216f3d93d7397d91647b0959da5.zip
Changed add_members, clone_member and sync_members to catch or avoid
MembershipIsBanned exception and report appropriately.
Diffstat (limited to '')
-rwxr-xr-xbin/sync_members2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sync_members b/bin/sync_members
index 4a21624c..13d0b2b0 100755
--- a/bin/sync_members
+++ b/bin/sync_members
@@ -260,6 +260,8 @@ def main():
print _('Added : %(s)s')
except Errors.MMAlreadyAMember:
pass
+ except Errors.MembershipIsBanned, pattern:
+ print ('%s:' % addr), _('Banned address (matched %(pattern)s)')
for laddr, addr in addrs.items():
# Should be a member, otherwise our test above is broken