From b6a5be19a950f6e0bfe21f7e9f05119fc7d7fba4 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sun, 29 Feb 2004 17:07:51 +0000 Subject: process_request(): Catch base class of EmailAddressError so either MMBadEmailError or MMHostileAddress will be caught. --- Mailman/Cgi/create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 5525d487..03c313bc 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2003 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2004 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -187,7 +187,7 @@ def process_request(doc, cgidata): mlist.Create(listname, owner, pw, langs, emailhost) finally: os.umask(oldmask) - except Errors.MMBadEmailError, s: + except Errors.EmailAddressError, s: request_creation(doc, cgidata, _('Bad owner email address: %(s)s')) return -- cgit v1.2.3