diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-18 12:10:34 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-18 12:10:34 -0500 |
commit | d214709eecf2208b5edb6c52af69a0d76973e595 (patch) | |
tree | 3d5096aba973b3eab8d9defed51d0964e472157c /cmd2/cmd2.py | |
parent | e1dc7637ab99bedaafa421b7fd499ed6302008f1 (diff) | |
download | cmd2-git-d214709eecf2208b5edb6c52af69a0d76973e595.tar.gz |
Fixed issue where argparse completion errors were being rewrapped as _ActionCompletionError in some cases
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 49273b51..60d5463a 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1420,7 +1420,7 @@ class Cmd(cmd.Cmd): err_str = str(e) if err_str: # Don't print error and redraw the prompt unless the error has length - ansi.style_aware_write(sys.stdout, err_str + '\n') + ansi.style_aware_write(sys.stdout, '\n' + err_str + '\n') rl_force_redisplay() return None except Exception as e: |