diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-08 11:24:44 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-08 11:24:44 -0400 |
commit | 2769e552c771a0999e87fcaa17803dbed9308e91 (patch) | |
tree | 3bae120ec11abec40f86258ef2412a74c17f0c59 /cmd2/cmd2.py | |
parent | f1c244ec9c2ae3918e61958844695fa8bd9eb147 (diff) | |
download | cmd2-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-x | cmd2/cmd2.py | 2 |
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) |