diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-02-29 09:47:36 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-02-29 09:47:36 -0800 |
commit | d14353a411404216f3d93d7397d91647b0959da5 (patch) | |
tree | 67fd659bc1cd5a896876b3ee8b8df3f223783ecd /bin/sync_members | |
parent | 7acc4e9c0f3bce4831ca1399fa7aade621ed6b70 (diff) | |
download | mailman2-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-x | bin/sync_members | 2 |
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 |