Don't passthrough_errors unless instructed. (#2006)
Fix #2005 Revert #1679 and #1996
This commit is contained in:
parent
ccd02bfe8c
commit
c4ec6954e5
3 changed files with 1 additions and 6 deletions
|
|
@ -838,8 +838,6 @@ class Flask(_PackageBoundObject):
|
|||
self.debug = bool(debug)
|
||||
options.setdefault('use_reloader', self.debug)
|
||||
options.setdefault('use_debugger', self.debug)
|
||||
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