Handle BaseExceptions
This commit is contained in:
parent
b0820bce59
commit
12c49c75fb
1 changed files with 3 additions and 0 deletions
|
|
@ -1983,6 +1983,9 @@ class Flask(_PackageBoundObject):
|
|||
except Exception as e:
|
||||
error = e
|
||||
response = self.handle_exception(e)
|
||||
except:
|
||||
error = sys.exc_info()[1]
|
||||
raise
|
||||
return response(environ, start_response)
|
||||
finally:
|
||||
if self.should_ignore_error(error):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue