Commit 5aadc375 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Merge pull request #127 from mruwek/fix-107-column

Don't crash on shlex.split in column UI
parents 9550c16a 64d59162
......@@ -101,6 +101,7 @@ class PromptApplication(CLIApplicationBase):
continue
except ValueError as verr:
error('Error: ' + str(verr))
continue
mtime_after = _todotxt_mtime()
......
......@@ -245,7 +245,12 @@ class UIApplication(CLIApplicationBase):
p_todo_id = ' '.join(self.marked_todos)
p_command = p_command.format(p_todo_id)
p_command = shlex.split(p_command)
try:
p_command = shlex.split(p_command)
except ValueError as verr:
self._print_to_console('Error: ' + str(verr))
return
try:
(subcommand, args) = get_subcommand(p_command)
except ConfigError as cerr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment