aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorbwarsaw <>2004-02-29 17:07:51 +0000
committerbwarsaw <>2004-02-29 17:07:51 +0000
commitb6a5be19a950f6e0bfe21f7e9f05119fc7d7fba4 (patch)
tree29156067fe4203504c4135420318fcb81bfa9d49 /Mailman
parent038b3afe27a5afb1a2f947d70b7fa1b522e6ca43 (diff)
downloadmailman2-b6a5be19a950f6e0bfe21f7e9f05119fc7d7fba4.tar.gz
mailman2-b6a5be19a950f6e0bfe21f7e9f05119fc7d7fba4.tar.xz
mailman2-b6a5be19a950f6e0bfe21f7e9f05119fc7d7fba4.zip
process_request(): Catch base class of EmailAddressError so either
MMBadEmailError or MMHostileAddress will be caught.
Diffstat (limited to '')
-rw-r--r--Mailman/Cgi/create.py4
1 files 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