From af4e67d428e3e946a5061fa2e441c825cd89eb83 Mon Sep 17 00:00:00 2001 From: hmeland Date: Sat, 8 Apr 2000 17:30:44 +0000 Subject: ProcessSubscribeCommand(): Use MailList.GetAdminEmail() for obtaining list admin contact address, instead of trusting the MMNeedApproval exception to have been raised with the correct address as argument. --- Mailman/MailCommandHandler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mailman/MailCommandHandler.py') diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py index 46d6d2578..71696ccc0 100644 --- a/Mailman/MailCommandHandler.py +++ b/Mailman/MailCommandHandler.py @@ -568,11 +568,11 @@ background and instructions for subscribing to and using it, visit: # of the results of the mail command message # self.__NoMailCmdResponse = 1 - except Errors.MMNeedApproval, admin_email: + except Errors.MMNeedApproval: self.AddToResponse( - "your subscription request has been forwarded the list " - "administrator\n" - "at %s for review." % admin_email, trunc=0) + "Your subscription request has been forwarded the" + " list administrator\n" + "at %s for review." % self.GetAdminEmail(), trunc=0) except Errors.MMBadEmailError: self.AddError("Mailman won't accept the given email " "address as a valid address.\n" -- cgit v1.2.3-70-g09d2