Only passthrough_errors if PROPAGATE_EXCEPTIONS
See pallets/werkzeug#954
This commit is contained in:
parent
71e10be286
commit
098ea0c8ca
3 changed files with 5 additions and 4 deletions
|
|
@ -838,7 +838,8 @@ class Flask(_PackageBoundObject):
|
|||
self.debug = bool(debug)
|
||||
options.setdefault('use_reloader', self.debug)
|
||||
options.setdefault('use_debugger', self.debug)
|
||||
options.setdefault('passthrough_errors', True)
|
||||
options.setdefault('passthrough_errors',
|
||||
self.config['PROPAGATE_EXCEPTIONS'])
|
||||
try:
|
||||
run_simple(host, port, self, **options)
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue