diff options
| author | bwarsaw | 1999-05-06 15:38:01 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-05-06 15:38:01 +0000 |
| commit | 0d9535baa0a0d428b1d82d910b640a40240b8b4a (patch) | |
| tree | 07bea564c4e6946c5f115292d9662721976aa2ff /Mailman/MailCommandHandler.py | |
| parent | 61c56a281be58308cf707a333ca5b9522faae142 (diff) | |
| download | mailman-0d9535baa0a0d428b1d82d910b640a40240b8b4a.tar.gz mailman-0d9535baa0a0d428b1d82d910b640a40240b8b4a.tar.zst mailman-0d9535baa0a0d428b1d82d910b640a40240b8b4a.zip | |
ProcessUnsubscribeCmd(): Catch Errors.MMNotAMemberError, which is what
SecurityManager raises when the user addr isn't on the list.
Diffstat (limited to '')
| -rw-r--r-- | Mailman/MailCommandHandler.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py index c7ec1db1c..ec8fa7b17 100644 --- a/Mailman/MailCommandHandler.py +++ b/Mailman/MailCommandHandler.py @@ -466,7 +466,6 @@ background and instructions for subscribing to and using it, visit: "send your request\nto the '-request' address" "for that list.") return - if len(args) == 2: addr = args[1] else: @@ -477,7 +476,7 @@ background and instructions for subscribing to and using it, visit: self.AddToResponse("Succeeded.") except Errors.MMListNotReady: self.AddError("List is not functional.") - except Errors.MMNoSuchUserError: + except (Errors.MMNoSuchUserError, Errors.MMNotAMemberError): self.AddError("%s is not subscribed to this list." % mail.GetSender()) except Errors.MMBadPasswordError: |
