Skip to content

Commit

Permalink
contribs.py: fixed the case of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelle committed Dec 25, 2015
1 parent f3392bc commit 76ad56f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/release/contribs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 76ad56f

Please sign in to comment.