aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authormsapiro <>2006-10-11 16:50:24 +0000
committermsapiro <>2006-10-11 16:50:24 +0000
commit08fc6675c6b8d6358fcaf63dfa457bb0dcddf9ee (patch)
tree235cc37a126101f21b5a9b6e2ddaa54ae8f1ae10 /Mailman/Cgi
parent423719c05de9f868ad15da4fdfbf1218a9d7c586 (diff)
downloadmailman2-08fc6675c6b8d6358fcaf63dfa457bb0dcddf9ee.tar.gz
mailman2-08fc6675c6b8d6358fcaf63dfa457bb0dcddf9ee.tar.xz
mailman2-08fc6675c6b8d6358fcaf63dfa457bb0dcddf9ee.zip
Fixed admin.py so null VARHELP category is handled (1573393).
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r--Mailman/Cgi/admin.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py
index f70a0721..718bb0c8 100644
--- a/Mailman/Cgi/admin.py
+++ b/Mailman/Cgi/admin.py
@@ -319,10 +319,11 @@ def option_help(mlist, varhelp):
elif len(reflist) == 3:
category, subcat, varname = reflist
options = mlist.GetConfigInfo(category, subcat)
- for i in options:
- if i and i[0] == varname:
- item = i
- break
+ if options:
+ for i in options:
+ if i and i[0] == varname:
+ item = i
+ break
# Print an error message if we couldn't find a valid one
if not item:
bad = _('No valid variable name found.')