forked from orbit-oss/flask
Print a stacktrace on CLI error (closes #2208)
This commit is contained in:
parent
1add1f8a02
commit
5b7fd9ad88
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import traceback
|
||||||
from threading import Lock, Thread
|
from threading import Lock, Thread
|
||||||
from functools import update_wrapper
|
from functools import update_wrapper
|
||||||
|
|
||||||
|
|
@ -368,6 +369,9 @@ class FlaskGroup(AppGroup):
|
||||||
# want the help page to break if the app does not exist.
|
# want the help page to break if the app does not exist.
|
||||||
# If someone attempts to use the command we try to create
|
# If someone attempts to use the command we try to create
|
||||||
# the app again and this will give us the error.
|
# the app again and this will give us the error.
|
||||||
|
# However, we will not do so silently because that would confuse
|
||||||
|
# users.
|
||||||
|
traceback.print_exc()
|
||||||
pass
|
pass
|
||||||
return sorted(rv)
|
return sorted(rv)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue