aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2014-11-07 17:19:05 -0800
committerMark Sapiro <mark@msapiro.net>2014-11-07 17:19:05 -0800
commit17d553ac0aab617f1d3ec91ec197a9233974f5ea (patch)
tree95af998f3ad9e6b5f1035a4fbccc5859c3028ce1 /Mailman/Cgi/options.py
parent4a71216dc2469b9d5586ef63a5ba9ff5e3c444a9 (diff)
downloadmailman2-17d553ac0aab617f1d3ec91ec197a9233974f5ea.tar.gz
mailman2-17d553ac0aab617f1d3ec91ec197a9233974f5ea.tar.xz
mailman2-17d553ac0aab617f1d3ec91ec197a9233974f5ea.zip
Catch the NotAMemberError exception thrown if an authenticated
unsubscribe is submitted from the user options page for a nonmember.
Diffstat (limited to '')
-rw-r--r--Mailman/Cgi/options.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index c1c08659..69ac52a9 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -518,6 +518,13 @@ address. Upon confirmation, any other mailing list containing the address
user, 'via the member options page', userack=1)
except Errors.MMNeedApproval:
needapproval = True
+ except Errors.NotAMemberError:
+ # MAS This except should really be in the outer try so we
+ # don't save the list redundantly, but except and finally in
+ # the same try requires Python >= 2.5.
+ # Setting a switch and making the Save() conditional doesn't
+ # seem worth it as the Save() won't change anything.
+ pass
mlist.Save()
finally:
mlist.Unlock()