﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32113	No error at 404 page when context processor returns None.	lcd1232	nobody	"It's difficult to find a bug if page has no stack trace or readable error. I caught this error if I do not return anything from the context processor. It would be great if Django will add a readable error for this situation.

If you have a custom 404 template and page not found then you got 500 error without understanding why.

Reproducible application - https://gist.github.com/lcd1232/f242d88b1eaeaccbb6ba2e81e68644cd

One more example of a context processor that can generate the same error:

{{{
def url_info(request):
    """"""
    Adds url info.
    """"""
    info = resolve(request.path_info) # raised exception for 404 page
    return {
        ""url_info"": {
            ""app_name"": info.namespace,
            ""url_name"": info.url_name,
            ""full_name"": f""{info.namespace}:{info.url_name}""
        }
    }
}}}

"	Bug	closed	Template system	3.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
