diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-02 13:54:34 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-02 13:54:34 -0500 |
commit | 3f0f277c412fb4adf27710c1dcb10ce82dacd604 (patch) | |
tree | 3589fda03daebcc5aed0dbc07841563b37ba3ad2 /cmd2/cmd2.py | |
parent | 6b00402e82d09b4d8e0ed42662555b78edb47585 (diff) | |
parent | 4da77c4cb0756191ee13f3c0003a2b04863b73ae (diff) | |
download | cmd2-git-3f0f277c412fb4adf27710c1dcb10ce82dacd604.tar.gz |
Merge branch 'master' into history_fix
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 5b30656f..2d60206c 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -95,6 +95,7 @@ from .exceptions import ( CompletionError, EmbeddedConsoleExit, EmptyStatement, + PassThroughException, RedirectionError, SkipPostcommandHooks, ) @@ -2259,6 +2260,8 @@ class Cmd(cmd.Cmd): raise ex except SystemExit: stop = True + except PassThroughException as ex: + raise ex.wrapped_ex except Exception as ex: self.pexcept(ex) finally: @@ -2269,6 +2272,8 @@ class Cmd(cmd.Cmd): raise ex except SystemExit: stop = True + except PassThroughException as ex: + raise ex.wrapped_ex except Exception as ex: self.pexcept(ex) |