contribs.py: fixed the case of empty string

This commit is contained in:
emmanuelle
2015-12-25 14:16:03 +01:00
parent f3392bc4f5
commit 76ad56fa83
+2 -1
View File
@@ -42,7 +42,8 @@ authors = [a.strip() for a in authors if a.strip()]
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)