e2jk/syncboom

Fix error 404 page

Closed this issue · 0 comments

e2jk commented

Calls to request.url_rule.endpoint in base.html fail as request has no url_rule when an error 404 is triggered.
Results in

jinja2.exceptions.UndefinedError: 'None' has no attribute 'endpoint'

Bug introduced in 0939853.