diff options
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Utils.py | 2 |
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] + '...' |