From 0481d976504f4ed54923901698d22201e4ea28b6 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 26 Jan 2017 19:24:34 +0000 Subject: [PATCH] Fixed a place where missing queryargument data could cause a 500 error. - Legacy-Id: 12741 --- ietf/doc/views_stats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ietf/doc/views_stats.py b/ietf/doc/views_stats.py index 6fa1a094b..6a88c119e 100644 --- a/ietf/doc/views_stats.py +++ b/ietf/doc/views_stats.py @@ -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: