diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index b3a61212..0d1d0b51 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -587,7 +587,7 @@ class Cmd(cmd.Cmd): :param err_color: (optional) color escape to output error with :param war_color: (optional) color escape to output warning with """ - if self.debug: + if self.debug and sys.exc_info() != (None, None, None): import traceback traceback.print_exc() |