summaryrefslogtreecommitdiff
path: root/kvmd/apps/janus
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-17 15:27:02 +0300
committerMaxim Devaev <[email protected]>2022-07-17 15:27:02 +0300
commitbe8032893eacf3242431c44ea34003b0458863af (patch)
tree61026dd38b05a6062e9052eabeaf9d4d64ff8d47 /kvmd/apps/janus
parentb7e220b4c5d0785427f59cb5f0756df288e7a075 (diff)
improved aiotools.run()
Diffstat (limited to 'kvmd/apps/janus')
-rw-r--r--kvmd/apps/janus/runner.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/kvmd/apps/janus/runner.py b/kvmd/apps/janus/runner.py
index a0110f47..204f8a9e 100644
--- a/kvmd/apps/janus/runner.py
+++ b/kvmd/apps/janus/runner.py
@@ -61,10 +61,7 @@ class JanusRunner: # pylint: disable=too-many-instance-attributes
def run(self) -> None:
logger = get_logger(0)
logger.info("Starting Janus Runner ...")
- try:
- aiotools.run(self.__run())
- except (SystemExit, KeyboardInterrupt):
- aiotools.run(self.__stop_janus())
+ aiotools.run(self.__run(), self.__stop_janus())
logger.info("Bye-bye")
# =====