From 0d9535baa0a0d428b1d82d910b640a40240b8b4a Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 6 May 1999 15:38:01 +0000 Subject: ProcessUnsubscribeCmd(): Catch Errors.MMNotAMemberError, which is what SecurityManager raises when the user addr isn't on the list. --- Mailman/MailCommandHandler.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3-70-g09d2