Skip to content

Commit

Permalink
Print a stacktrace on CLI error (closes pallets#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Mar 16, 2017
1 parent 1add1f8 commit 5b7fd9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import os
import sys
import traceback
from threading import Lock, Thread
from functools import update_wrapper

Expand Down Expand Up @@ -368,6 +369,9 @@ def list_commands(self, ctx):
# want the help page to break if the app does not exist.
# If someone attempts to use the command we try to create
# 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
return sorted(rv)

Expand Down

0 comments on commit 5b7fd9a

Please sign in to comment.