From 6f91bea16a00f48ff6be729ed12a5920ebac3baa Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 28 May 2020 10:54:10 -0400 Subject: Removed pwarning() calls when command raises SystemExit Added unit tests --- cmd2/cmd2.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd2') 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) -- cgit v1.2.1