From 3fb37b4f309c640fc7d59c6964db8274dacad00a Mon Sep 17 00:00:00 2001 From: Nex Date: Thu, 30 Jun 2022 10:26:33 +0200 Subject: [PATCH] Added finish() method to Command class --- mvt/common/command.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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