aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2018-07-24 14:56:35 -0700
committerMark Sapiro <mark@msapiro.net>2018-07-24 14:56:35 -0700
commit3f0a2a23837cbfd6dfc38d7df6480e936e646ffa (patch)
tree356b7cdb70a172a879b013b121c0a8f3d4eded8a /Mailman
parent4aae75a4e4f560630060f7b3f5c3cdc226d127a3 (diff)
downloadmailman2-3f0a2a23837cbfd6dfc38d7df6480e936e646ffa.tar.gz
mailman2-3f0a2a23837cbfd6dfc38d7df6480e936e646ffa.tar.xz
mailman2-3f0a2a23837cbfd6dfc38d7df6480e936e646ffa.zip
Fixed broken patch at rev. 1796.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 7b8015a4..605d0976 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -297,7 +297,7 @@ def GetPathPieces(envar='PATH_INFO'):
longest = max([len(x) for x in list_names()])
else:
longest = 20
- if len(pieces[0]) > longest:
+ if pieces and len(pieces[0]) > longest:
syslog('mischief',
'Hostile listname: listname=%s: remote=%s', pieces[0], remote)
pieces[0] = pieces[0][:longest] + '...'