diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2022-01-26 15:51:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-26 15:51:59 -0500 |
| commit | b052dcd1bc439aab9b2d2931a0898c7862dc3850 (patch) | |
| tree | 54f3759bc2c2f54b65b017369e292c2c8c8f3400 | |
| parent | de5cd40c388517e558cf74dbec61c64e8ad6ca75 (diff) | |
| download | cmd2-git-b052dcd1bc439aab9b2d2931a0898c7862dc3850.tar.gz | |
Added PassThroughException to __init__.py imports. (#1194)
Co-authored-by: Todd Leonhardt <todd.leonhardt@gmail.com>
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | cmd2/__init__.py | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b1a49caf..71089a1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ * Bug Fixes * Fixed issue in `ansi.async_alert_str()` which would raise `IndexError` if prompt was blank. * Enhancements - * Added broader exception handling when enabling clipboard functionality via `pyperclip`. + * Added broader exception handling when enabling clipboard functionality via `pyperclip`. + * Added `PassThroughException` to `__init__.py` imports. ## 2.3.3 (November 29, 2021) * Enhancements diff --git a/cmd2/__init__.py b/cmd2/__init__.py index 3a9d05fc..46dbca80 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -56,7 +56,13 @@ from .cmd2 import Cmd from .command_definition import CommandSet, with_default_category from .constants import COMMAND_NAME, DEFAULT_SHORTCUTS from .decorators import with_argument_list, with_argparser, with_category, as_subcommand_to -from .exceptions import Cmd2ArgparseError, CommandSetRegistrationError, CompletionError, SkipPostcommandHooks +from .exceptions import ( + Cmd2ArgparseError, + CommandSetRegistrationError, + CompletionError, + PassThroughException, + SkipPostcommandHooks, +) from . import plugin from .parsing import Statement from .py_bridge import CommandResult |
