From 3f0a2a23837cbfd6dfc38d7df6480e936e646ffa Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 24 Jul 2018 14:56:35 -0700 Subject: Fixed broken patch at rev. 1796. --- Mailman/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman') 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] + '...' -- cgit v1.2.3