Commit a6bde094 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/key-not-found' into 'master'

Fix possible error in production

I was trying the error pages in production and it seems the 'request' key may sometimes be missing. So I suggest we use `get` as a safer way of getting the request.

See merge request !74
parents d25a9edc e390a2de
......@@ -7,4 +7,4 @@ register = template.Library()
@register.inclusion_tag('menu/menu.html', takes_context=True)
def render_main_menu(context):
return {'menu': main, 'request': context['request']}
return {'menu': main, 'request': context.get('request')}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment