summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/private.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/private.py
parent85ff1df49be81af31a33f466ac7ab424fe00cad8 (diff)
downloadmailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.tar.gz
mailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.tar.zst
mailman-97d0cd927eb108d6970fa7e973e8be89c439c2eb.zip
Diffstat (limited to 'Mailman/Cgi/private.py')
-rw-r--r--Mailman/Cgi/private.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Cgi/private.py b/Mailman/Cgi/private.py
index f0c206916..750e2d8bd 100644
--- a/Mailman/Cgi/private.py
+++ b/Mailman/Cgi/private.py
@@ -104,7 +104,7 @@ def main():
doc.AddItem(Header(3, "You must specify a list."))
print doc.Format(bgcolor="#FFFFFF")
sys.exit(0)
- list_name = string.lower(list_info[0])
+ listname = string.lower(list_info[0])
# If it's a directory, we have to append index.html in this script. We
# must also check for a gzipped file, because the text archives are
@@ -117,14 +117,14 @@ def main():
true_filename = true_filename + '.gz'
try:
- listobj = MailList.MailList(list_name, lock=0)
- except Errors.MMUnknownListError:
- listobj = None
- if not (listobj and listobj._ready):
- msg = "%s: No such list." % list_name
+ listobj = MailList.MailList(listname, lock=0)
+ listobj.IsListInitialized()
+ except Errors.MMListError, e:
+ msg = 'No such list <em>%s</em>' % listname
doc.SetTitle("Private Archive Error - %s" % msg)
doc.AddItem(Header(2, msg))
print doc.Format(bgcolor="#FFFFFF")
+ sys.stderr.write('No such list "%s": %s\n' % (listname, e))
sys.exit(0)
form = cgi.FieldStorage()