forked from orbit-oss/flask
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:
parent
f22da31e7f
commit
13754b6d11
3 changed files with 29 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue