From 76ad56fa836db54661b1d4e046939cf74a94d8d6 Mon Sep 17 00:00:00 2001 From: emmanuelle Date: Fri, 25 Dec 2015 14:16:03 +0100 Subject: [PATCH] contribs.py: fixed the case of empty string --- doc/release/contribs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/release/contribs.py b/doc/release/contribs.py index c0a34e6eb4a..18a108e37a5 100755 --- a/doc/release/contribs.py +++ b/doc/release/contribs.py @@ -42,7 +42,8 @@ def call(cmd): def key(author): author = [v for v in author.split() if v[0] in string.ascii_letters] - return author[-1] + if len(author) > 0: + return author[-1] authors = sorted(set(authors), key=key)