summaryrefslogtreecommitdiff
path: root/Mailman/bin/newlist.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-19 21:22:20 -0500
committerBarry Warsaw2008-02-19 21:22:20 -0500
commitaab29f252ebefb1520714080a90bb42a25393f18 (patch)
treea5df0c60d606bd3fbe1455d9a6c95be5dd55e6f6 /Mailman/bin/newlist.py
parent2bd332002f241ab7ca77f935a73692f6cbf41fe5 (diff)
downloadmailman-aab29f252ebefb1520714080a90bb42a25393f18.tar.gz
mailman-aab29f252ebefb1520714080a90bb42a25393f18.tar.zst
mailman-aab29f252ebefb1520714080a90bb42a25393f18.zip
The start of a cleaning up of Errors.py. Eventually, I want to get rid of
this module, in favor of moving exceptions into the interface modules that they are appropriate for. For now, this is just the low-hanging fruit. Along the way, clean up by reSTifying some interfaces and implementations.
Diffstat (limited to 'Mailman/bin/newlist.py')
-rw-r--r--Mailman/bin/newlist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/bin/newlist.py b/Mailman/bin/newlist.py
index f63e46724..45373510e 100644
--- a/Mailman/bin/newlist.py
+++ b/Mailman/bin/newlist.py
@@ -31,6 +31,8 @@ from Mailman import i18n
from Mailman.app.lifecycle import create_list
from Mailman.configuration import config
from Mailman.initialize import initialize
+from Mailman.interfaces import ListAlreadyExistsError
+
_ = i18n._
@@ -107,7 +109,7 @@ def main():
mlist.preferred_language = opts.language
except Errors.InvalidEmailAddress:
parser.error(_('Illegal list name: $fqdn_listname'))
- except Errors.MMListAlreadyExistsError:
+ except ListAlreadyExistsError:
parser.error(_('List already exists: $fqdn_listname'))
except Errors.BadDomainSpecificationError, domain:
parser.error(_('Undefined domain: $domain'))