summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-17 11:26:15 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-17 11:26:15 -0400
commit9e9d54851148bcac0524b7e70e30baa166d03441 (patch)
tree4c4c61f08f3f3c7bf6b9031a42be79741ce9caf2 /cmd2
parent462b4fb11f817fa727c5b750969c4c5f0cc62a3b (diff)
downloadcmd2-git-9e9d54851148bcac0524b7e70e30baa166d03441.tar.gz
Changed formatting of an error message
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 0255d1ce..9e5f5d56 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1576,6 +1576,8 @@ class Cmd(cmd.Cmd):
try:
return self._complete_worker(text, state)
except Exception as e:
+ # Insert a newline so the exception doesn't print in the middle of the command line being tab completed
+ self.perror('\n', end='')
self.pexcept(e)
return None