summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-05-28 10:54:10 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-05-28 10:54:10 -0400
commit6f91bea16a00f48ff6be729ed12a5920ebac3baa (patch)
tree1fef77d75b0ee0dbde5158f01230ce07f48bbeb8 /cmd2/cmd2.py
parent6460d5707fffc725c50e0642b1e1e2edafa18d87 (diff)
downloadcmd2-git-6f91bea16a00f48ff6be729ed12a5920ebac3baa.tar.gz
Removed pwarning() calls when command raises SystemExit
Added unit tests
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index aacb9d93..73f7aa79 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1678,7 +1678,6 @@ class Cmd(cmd.Cmd):
if raise_keyboard_interrupt and not stop:
raise ex
except SystemExit:
- self.pwarning("Caught SystemExit. Attempting to stop command loop...")
stop = True
except Exception as ex:
self.pexcept(ex)
@@ -1689,7 +1688,6 @@ class Cmd(cmd.Cmd):
if raise_keyboard_interrupt and not stop:
raise ex
except SystemExit:
- self.pwarning("Caught SystemExit. Attempting to stop command loop...")
stop = True
except Exception as ex:
self.pexcept(ex)