Commit 23782a06 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Call _post_execute() when a subcommand succeeds.

Thanks to Jacek for pointing out.
parent e364b278
...@@ -104,13 +104,7 @@ class PromptApplication(CLIApplicationBase): ...@@ -104,13 +104,7 @@ class PromptApplication(CLIApplicationBase):
try: try:
if self._execute(subcommand, args) != False: if self._execute(subcommand, args) != False:
if self.todolist.is_dirty(): self._post_execute()
self._archive()
if config().keep_sorted():
self._execute(SortCommand, [])
self.todofile.write(str(self.todolist))
except TypeError: except TypeError:
usage() usage()
......
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