Commit 707412b8 authored by fred's avatar fred

misc: don't crash error pages in metanav

parent 957481d8
......@@ -131,7 +131,11 @@ def player(context):
@register.inclusion_tag('includes/metaNav.html', takes_context=True)
def metanav(context, active=None):
request_path = context['request'].path
request_path = context['request'].path
except KeyError:
# a context without 'requests' may happen when rendering error pages
request_path = 'xxx'
section = 'About'
if request_path == '/':
section = 'Home'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment