summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-08-08 11:24:44 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-08-08 11:24:44 -0400
commit2769e552c771a0999e87fcaa17803dbed9308e91 (patch)
tree3bae120ec11abec40f86258ef2412a74c17f0c59 /cmd2/cmd2.py
parentf1c244ec9c2ae3918e61958844695fa8bd9eb147 (diff)
downloadcmd2-git-2769e552c771a0999e87fcaa17803dbed9308e91.tar.gz
Do not print traceback warning text if debug is not a settable parameter
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)