From 81e061af30ecf7bb53d8b8fc297818b0e1b1e8f2 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 19 Jun 2019 02:20:40 -0400 Subject: [PATCH] added missing raise SystemExit() --- lbrynet/extras/daemon/Daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index aa9ba0fa5..504aa9618 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -431,7 +431,6 @@ class Daemon(metaclass=JSONRPCServerType): await self.analytics_manager.send_server_startup_error(str(e)) raise SystemExit() - try: await self.initialize() except asyncio.CancelledError: @@ -441,6 +440,7 @@ class Daemon(metaclass=JSONRPCServerType): except Exception as e: await self.analytics_manager.send_server_startup_error(str(e)) log.exception('Failed to start lbrynet') + raise SystemExit() await self.analytics_manager.send_server_startup_success()