summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-11-20 17:06:20 +0000
committerklm1998-11-20 17:06:20 +0000
commit69a2c0f25a423b4bc203700aecf976da9fbee62b (patch)
treec1eb03e52d56c431ec649e3a4bc394fb6fbe5c86
parent289f54066b7ffb30f53935b84d105c4661efdba0 (diff)
downloadmailman-69a2c0f25a423b4bc203700aecf976da9fbee62b.tar.gz
mailman-69a2c0f25a423b4bc203700aecf976da9fbee62b.tar.zst
mailman-69a2c0f25a423b4bc203700aecf976da9fbee62b.zip
-rw-r--r--Mailman/Cgi/private.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/Mailman/Cgi/private.py b/Mailman/Cgi/private.py
index c52c1adae..b4215a403 100644
--- a/Mailman/Cgi/private.py
+++ b/Mailman/Cgi/private.py
@@ -116,10 +116,11 @@ def isAuthenticated(list_name):
# be displayed with an appropriate message.
global login_attempted
login_attempted=1
- listobj = GetListobj(list_name)
- if not listobj:
- print '\n<P>A list named,', repr(list_name), "was not found."
- return 0
+ try:
+ listobj = GetListobj(list_name)
+ except Errors.MMUnknownListError:
+ print "\n<H3>List", repr(list_name), "not found.</h3>"
+ raise SystemExit
try:
listobj.ConfirmUserPassword( username, password)
except (Errors.MMBadUserError, Errors.MMBadPasswordError):
@@ -153,7 +154,11 @@ def main():
print 'Content-type: text/html\n'
page = PAGE
- listobj = GetListobj(list_name)
+ try:
+ listobj = GetListobj(list_name)
+ except Errors.MMUnknownListError:
+ print "\n<H3>List", repr(list_name), "not found.</h3>"
+ raise SystemExit
if login_attempted:
message = ("Your email address or password were incorrect."
" Please try again.")