Fixed a place where missing queryargument data could cause a 500 error.

- Legacy-Id: 12741
This commit is contained in:
Henrik Levkowetz 2017-01-26 19:24:34 +00:00
parent a3d84ea88f
commit 0481d97650

View file

@ -83,8 +83,10 @@ def make_title(queryargs):
title += ' revisions'
# radio choices
by = queryargs.get('by')
if by == "author":
title += ' with author %s' % queryargs['author'].title()
if by == 'author':
author = queryargs.get('author')
if author:
title += ' with author %s' % author.title()
elif by == "group":
group = queryargs.get('group')
if group: