forked from orbit-oss/flask
Merge pull request #1679 from miguelgrinberg/passthrough-errors
Werkzeug should not block propagated exceptions from Flask
This commit is contained in:
commit
7b1ebfbc4d
3 changed files with 23 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -422,7 +422,8 @@ def run_command(info, host, port, reload, debugger, eager_loading,
|
|||
print(' * Forcing debug %s' % (info.debug and 'on' or 'off'))
|
||||
|
||||
run_simple(host, port, app, use_reloader=reload,
|
||||
use_debugger=debugger, threaded=with_threads)
|
||||
use_debugger=debugger, threaded=with_threads,
|
||||
passthrough_errors=True)
|
||||
|
||||
|
||||
@click.command('shell', short_help='Runs a shell in the app context.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue