diff options
| author | bwarsaw | 2000-03-23 06:25:45 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-23 06:25:45 +0000 |
| commit | 73aea5a19277941e552790d4fa2729b697248b77 (patch) | |
| tree | 79c16ee89dc3e23ed91eabefd38936c3f47eaeb5 | |
| parent | 57641dfd8dbb14a03297849ef7e30650b309408a (diff) | |
| download | mailman-73aea5a19277941e552790d4fa2729b697248b77.tar.gz mailman-73aea5a19277941e552790d4fa2729b697248b77.tar.zst mailman-73aea5a19277941e552790d4fa2729b697248b77.zip | |
process_form(): Catch MMBadUserError, which can get raised during
password confirmation when the user doesn't have a password (and how
can that happen?!)
| -rw-r--r-- | Mailman/Cgi/handle_opts.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Cgi/handle_opts.py b/Mailman/Cgi/handle_opts.py index 3c2a73a6e..a0cf7a120 100644 --- a/Mailman/Cgi/handle_opts.py +++ b/Mailman/Cgi/handle_opts.py @@ -140,6 +140,10 @@ def process_form(mlist, user, doc): "You seem to no longer be a list member.") except Errors.MMBadPasswordError: PrintResults(mlist, operation, doc, "Incorrect password.") + except Errors.MMBadUserError: + PrintResults( + mlist, operation, doc, + "You have no password. Contact the list administrator.") doc.AddItem(Header(2, "List Subscriptions for %s on %s" % (user, mlist.host_name))) |
