From b052dcd1bc439aab9b2d2931a0898c7862dc3850 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 26 Jan 2022 15:51:59 -0500 Subject: Added PassThroughException to __init__.py imports. (#1194) Co-authored-by: Todd Leonhardt --- CHANGELOG.md | 3 ++- 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 -- cgit v1.2.1