From f349227c926e65a4e712a0567245c31e3ce252eb Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 26 Jan 2022 15:14:38 -0500 Subject: [PATCH] Added PassThroughException to __init__.py imports. --- CHANGELOG.md | 3 ++- cmd2/__init__.py | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1a49caf6..71089a1d6 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 3a9d05fcb..46dbca809 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -56,7 +56,13 @@ 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