diff options
author | Maxim Devaev <[email protected]> | 2022-07-17 15:27:02 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-17 15:27:02 +0300 |
commit | be8032893eacf3242431c44ea34003b0458863af (patch) | |
tree | 61026dd38b05a6062e9052eabeaf9d4d64ff8d47 /kvmd/apps/janus | |
parent | b7e220b4c5d0785427f59cb5f0756df288e7a075 (diff) |
improved aiotools.run()
Diffstat (limited to 'kvmd/apps/janus')
-rw-r--r-- | kvmd/apps/janus/runner.py | 5 |
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") # ===== |