forked from orbit-oss/flask
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
|
|
@ -430,7 +430,7 @@ def run_command(info, host, port, reload, debugger, eager_loading,
|
|||
|
||||
run_simple(host, port, app, use_reloader=reload,
|
||||
use_debugger=debugger, threaded=with_threads,
|
||||
passthrough_errors=True)
|
||||
passthrough_errors=app.config['PROPAGATE_EXCEPTIONS'])
|
||||
|
||||
|
||||
@click.command('shell', short_help='Runs a shell in the app context.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue