Skip to content

Commit 0481d97

Browse files
committed
Fixed a place where missing queryargument data could cause a 500 error.
- Legacy-Id: 12741
1 parent a3d84ea commit 0481d97

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/doc/views_stats.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ def make_title(queryargs):
8383
title += ' revisions'
8484
# radio choices
8585
by = queryargs.get('by')
86-
if by == "author":
87-
title += ' with author %s' % queryargs['author'].title()
86+
if by == 'author':
87+
author = queryargs.get('author')
88+
if author:
89+
title += ' with author %s' % author.title()
8890
elif by == "group":
8991
group = queryargs.get('group')
9092
if group:

0 commit comments

Comments
 (0)