summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-09 22:58:38 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-09 22:58:38 -0500
commitbeee0befc208fe2727aab11d13c1b88ca7544a45 (patch)
treeab439d9d8dcc3ef3a059ed5f12824636456f557e /cmd2/cmd2.py
parent4c03d88c641da1527066df4cea73c3cd909dffb7 (diff)
parent704666ea25e9abb93c6c8d2e3ae62e6cb0928450 (diff)
downloadcmd2-git-beee0befc208fe2727aab11d13c1b88ca7544a45.tar.gz
Merge branch 'master' into disable_command
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 8a5d31d3..e50a192d 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -600,7 +600,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()