diff options
author | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-07-25 16:46:13 +0900 |
---|---|---|
committer | Yasuhito FUTATSUKI at POEM <futatuki@poem.co.jp> | 2018-07-25 16:46:13 +0900 |
commit | fc48b273bb4bff8c83df75a771e3e85fad9cef1b (patch) | |
tree | 7c75ff8badc2e40400d643e306b5d6660954fa7e /Mailman/Utils.py | |
parent | 5ba5df2627df0b4830054a5fdf7eb72e05613e65 (diff) | |
parent | ca56100581bbba68ca0fa43f99a03bb82064341f (diff) | |
download | mailman2-fc48b273bb4bff8c83df75a771e3e85fad9cef1b.tar.gz mailman2-fc48b273bb4bff8c83df75a771e3e85fad9cef1b.tar.xz mailman2-fc48b273bb4bff8c83df75a771e3e85fad9cef1b.zip |
merge lp:mailman/2.1 up to 1799 (2.1.29 release)
Diffstat (limited to 'Mailman/Utils.py')
-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] + '...' |