summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/options.py')
-rw-r--r--Mailman/Cgi/options.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index 723178f84..3fc5faa1e 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -25,12 +25,13 @@ unobscured ids as well.
# We don't need to lock in this script, because we're never going to change
# data.
+import sys
import os
import string
+from Mailman import mm_cfg
from Mailman import Utils
from Mailman import MailList
-from Mailman import mm_cfg
from Mailman import Errors
from Mailman.htmlformat import *
@@ -57,10 +58,11 @@ def main():
# open list
try:
mlist = MailList.MailList(listname, lock=0)
- except (Errors.MMUnknownListError, Errors.MMListNotReady):
+ except Errors.MMListError, e:
doc.AddItem(Header(2, "Error"))
- doc.AddItem(Bold("%s: No such list." % listname ))
+ doc.AddItem(Bold('No such list <em>%s</em>' % listname))
print doc.Format()
+ sys.stderr.write('No such list "%s": %s\n' % (listname, e))
return
# Sanity check the user