Skip to content
Myr

Print a stacktrace on CLI error (closes #2208)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sven-Hendrik Haase · committed by Sven-Hendrik Haase · parent 1add1f8 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:flask/cli.py+4 added
9 unmodified lines
10"""1112import os13import sys14import traceback15from threading import Lock, Thread16from functools import update_wrapper1718import click
349 unmodified lines
368 # Here we intentionally swallow all exceptions as we don't369 # want the help page to break if the app does not exist.370 # If someone attempts to use the command we try to create371 # the app again and this will give us the error.372 # However, we will not do so silently because that would confuse373 # users.374 traceback.print_exc()375 pass376 return sorted(rv)377378 def main(self, *args, **kwargs):
150 unmodified lines