summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()