diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-03-05 19:19:38 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-03-05 19:19:38 -0500 |
commit | d17f79428a41a5239c4fdbdf9745c294649f49e8 (patch) | |
tree | 33a751c3200fefb57ab4b2721136b72d45296074 /cmd2/cmd2.py | |
parent | 4ce15df09106b689a36479f1ffdec07838d8802d (diff) | |
download | cmd2-git-d17f79428a41a5239c4fdbdf9745c294649f49e8.tar.gz |
Changed name of exception class as requested in code review
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index acb0797a..65b35705 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -50,7 +50,7 @@ from . import utils from .argparse_custom import CompletionItem, DEFAULT_ARGUMENT_PARSER from .clipboard import can_clip, get_paste_buffer, write_to_paste_buffer from .decorators import with_argparser -from .exceptions import CmdLineError, EmbeddedConsoleExit, EmptyStatement +from .exceptions import Cmd2ArgparseException, EmbeddedConsoleExit, EmptyStatement from .history import History, HistoryItem from .parsing import StatementParser, Statement, Macro, MacroArg, shlex_split from .rl_utils import rl_type, RlType, rl_get_point, rl_set_prompt, vt100_support, rl_make_safe_prompt, rl_warning @@ -1683,7 +1683,7 @@ class Cmd(cmd.Cmd): # Stop saving command's stdout before command finalization hooks run self.stdout.pause_storage = True - except (CmdLineError, EmptyStatement): + except (Cmd2ArgparseException, EmptyStatement): # Don't do anything, but do allow command finalization hooks to run pass except Exception as ex: |