diff options
Diffstat (limited to 'Mailman/Cgi/admindb.py')
| -rw-r--r-- | Mailman/Cgi/admindb.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 52d8d7646..fb4cd256f 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -17,14 +17,17 @@ """Produce and process the pending-approval items for a list.""" import os +import sys import string import types import cgi from errno import ENOENT -from Mailman import Utils, MailList, Errors -from Mailman.htmlformat import * from Mailman import mm_cfg +from Mailman import Utils +from Mailman import MailList +from Mailman import Errors +from Mailman.htmlformat import * @@ -60,8 +63,9 @@ def main(): # now that we have the list name, create the list object try: mlist = MailList.MailList(listname) - except (Errors.MMUnknownListError, Errors.MMListNotReady): - handle_no_list(doc, 'No such list: <tt>%s</tt><p>' % listname) + except Errors.MMListError, e: + handle_no_list(doc, 'No such list <em>%s</em><p>' % listname) + sys.stderr.write('No such list "%s": %s\n' % (listname, e)) return # # now we must authorize the user to view this page, and if they are, to |
