summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index c0246705..19bdc244 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -689,7 +689,7 @@ class Cmd(cmd.Cmd):
if apply_style:
final_msg = ansi.style_error(final_msg)
- if not self.debug:
+ if not self.debug and 'debug' in self.settable:
warning = "\nTo enable full traceback, run the following command: 'set debug true'"
final_msg += ansi.style_warning(warning)