summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-08-08 11:58:36 -0400
committerGitHub <noreply@github.com>2019-08-08 11:58:36 -0400
commitc1c7cacd66555c7f4b80abc51bb93f8d58be836f (patch)
tree3bae120ec11abec40f86258ef2412a74c17f0c59 /cmd2/cmd2.py
parentf1c244ec9c2ae3918e61958844695fa8bd9eb147 (diff)
parent2769e552c771a0999e87fcaa17803dbed9308e91 (diff)
downloadcmd2-git-c1c7cacd66555c7f4b80abc51bb93f8d58be836f.tar.gz
Merge pull request #756 from python-cmd2/no_debug
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)