Werkzeug should not block propagated exceptions from Flask

This commit is contained in:
Miguel Grinberg 2016-01-02 10:56:02 -08:00
parent f17e6061fc
commit 952a6c8989
3 changed files with 23 additions and 1 deletions

View file

@ -833,6 +833,7 @@ class Flask(_PackageBoundObject):
self.debug = bool(debug)
options.setdefault('use_reloader', self.debug)
options.setdefault('use_debugger', self.debug)
options.setdefault('passthrough_errors', True)
try:
run_simple(host, port, self, **options)
finally: