﻿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
10758	sys.exc_info() should not be stored on a local variable	piotr.findeisen@…	Luke Plant	"In {{{get_response()}}} function in file http://code.djangoproject.com/browser/django/trunk/django/core/handlers/base.py#L132 there is a code like this:

{{{
#!python
    ...
except:
    exc_info = sys.exc_info()
    receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
    return self.handle_uncaught_exception(request, resolver, exc_info)
}}}

First: according to python docs http://docs.python.org/library/sys.html#sys.exc_info you should 

 * save only {{{sys.exc_info()[:2]}}} or
 * wrap it in try-finally to ensure {{{exc_info}}} variable is always deleted

Second: why do you catch all exceptions instead of Exception? Is there a good reason to catch e.g. {{{KeyboardInterrupt}}}?

"		closed	HTTP handling	dev		fixed			Accepted	1	0	0	0	0	0
