summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authormsapiro2005-12-03 01:10:30 +0000
committermsapiro2005-12-03 01:10:30 +0000
commit6a6c3fd376396362b2d999a7610990fbcb2b94aa (patch)
treec4b0b6d1c33d8a2082005869acc4f56f2802764b /Mailman/Cgi/options.py
parent419cf66ac9783ab981e382274ab84de8d0984047 (diff)
downloadmailman-6a6c3fd376396362b2d999a7610990fbcb2b94aa.tar.gz
mailman-6a6c3fd376396362b2d999a7610990fbcb2b94aa.tar.zst
mailman-6a6c3fd376396362b2d999a7610990fbcb2b94aa.zip
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index ed40e8281..eb7adb675 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -399,6 +399,11 @@ address. Upon confirmation, any other mailing list containing the address
msg = _('Illegal email address provided')
except Errors.MMAlreadyAMember:
msg = _('%(newaddr)s is already a member of the list.')
+ except Errors.MembershipIsBanned:
+ owneraddr = mlist.GetOwnerEmail()
+ msg = _("""%(newaddr)s is banned from this list. If you
+ think this restriction is erroneous, please contact
+ the list owners at %(owneraddr)s.""")
if set_membername:
mlist.Lock()