summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorbwarsaw2000-04-04 23:12:50 +0000
committerbwarsaw2000-04-04 23:12:50 +0000
commit97d0cd927eb108d6970fa7e973e8be89c439c2eb (patch)
treeff3c814fe7000725a87c2625e4e3e5089ad9a485 /Mailman/Cgi/options.py
parent85ff1df49be81af31a33f466ac7ab424fe00cad8 (diff)
downloadmailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.tar.gz
mailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.tar.zst
mailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.zip
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