Browse Source

Handle BaseExceptions

pull/2247/head
Diggory Blake 8 years ago committed by Markus Unterwaditzer
parent
commit
12c49c75fb
  1. 3
      flask/app.py

3
flask/app.py

@ -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…
Cancel
Save