diff --git a/mvt/common/command.py b/mvt/common/command.py index af5e54a..3e83517 100644 --- a/mvt/common/command.py +++ b/mvt/common/command.py @@ -136,6 +136,9 @@ class Command(object): def module_init(self, module: Callable) -> None: raise NotImplementedError + def finish(self) -> None: + raise NotImplementedError + def run(self) -> None: self._create_storage() self._add_log_file_handler(self.log) @@ -176,3 +179,8 @@ class Command(object): self._store_timeline() self._store_info() + + try: + self.finish() + except NotImplementedError: + pass