aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-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] + '...'