﻿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
12083	technical_404_response should handle KeyError because 'tried' key might be not present	Maciej Wiśniowski	nobody	"'''django/views.py->technical_404_response''' expects key 'tried' to exist in args[0] dictionary:
{{{
def technical_404_response(request, exception):
    ""Create a technical 404 error response. The exception should be the Http404.""
    try:
        tried = exception.args[0]['tried']
    except (IndexError, TypeError):
        tried = []
    (...)
}}}


Above is not always true. For example: '''django/core/urlresolvers.py->RegexURLResolver.resolve''' can raise Resolver404 exception without 'tried' key.
{{{
                raise Resolver404, {'tried': tried, 'path': new_path}
        raise Resolver404, {'path' : path}
}}}

Possible solution is to add KeyError to list of exceptions in technical_404_response."		closed	Core (Other)	1.1		fixed		pigletto@…	Accepted	1	0	0	0	0	0
