﻿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
13684	a bug in a catch-all try..except in Django masks other exceptions: local variable 'resolver' referenced before assignment	Antti Kaihola	nobody	"I ran into this when my custom settings for running unit tests didn't include `ROOT_URLCONF`, and others have seen this too
([http://groups.google.com/group/django-non-relational/browse_thread/thread/0b21bd386dd9da21 1],
[http://webcache.googleusercontent.com/search?q=cache:BMZN8wgQHx0J:stackoverflow.com/questions/2892878/django-mod-wsgi-error-unboundlocalerror-local-variable-resolver-referenced-be+django+""local+variable+'resolver'""&cd=3&hl=fi&ct=clnk&gl=fi 2],
[http://www.developerit.com/2010/05/23/django-mod_wsgi-error-unboundlocalerror-local-variable-resolver-referenced-before-assignment 3]).

In `django.core.handlers.base.get_response`, the `resolver` variable is defined inside a `try:` block and referenced in the final catch-all `except:` block. I'd move setting up the default url resolver outside the `try..except` block since a problem there probably prevents rendering 500 pages."	Bug	closed	HTTP handling	1.3	Normal	fixed		techtonik@…	Accepted	1	0	0	0	0	0
