mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 10:49:17 +00:00
Be more friendly about shlex parsing errors
If user provides bad input, be more helpful and less fatalistic.
This commit is contained in:
parent
011ba66314
commit
43b51eec20
@ -235,7 +235,11 @@ def rcompleter(text, state):
|
||||
|
||||
|
||||
def parse_command(command):
|
||||
args = shlex.split(command, posix=True)
|
||||
try:
|
||||
args = shlex.split(command, posix=True)
|
||||
except ValueError as ve:
|
||||
print('Error: ' + ve.message)
|
||||
return []
|
||||
return args
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user