Pass exc explicitly to the inner context.

This commit is contained in:
Armin Ronacher 2012-04-09 17:32:37 +01:00
parent 9bed20c07c
commit cb54c462b8

View file

@ -224,7 +224,7 @@ class RequestContext(object):
# Get rid of the app as well if necessary.
if self._pushed_application_context:
self._pushed_application_context.pop()
self._pushed_application_context.pop(exc)
self._pushed_application_context = None
def __enter__(self):