ensure error while opening session pops context

errors will be handled by the app error handlers
closes #1538, closes #1528
This commit is contained in:
David Lord 2017-04-22 13:39:54 -07:00
parent f22da31e7f
commit 13754b6d11
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 29 additions and 1 deletions

View file

@ -2002,10 +2002,10 @@ class Flask(_PackageBoundObject):
exception context to start the response
"""
ctx = self.request_context(environ)
ctx.push()
error = None
try:
try:
ctx.push()
response = self.full_dispatch_request()
except Exception as e:
error = e