From 8a6034f3d6b591eb2405aa5ec88a6e596387c67f Mon Sep 17 00:00:00 2001 From: miro Date: Tue, 7 Jan 2025 16:54:00 +0000 Subject: [PATCH] error hanling --- hivemind_core/service.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hivemind_core/service.py b/hivemind_core/service.py index b9e1325..2dfe1fc 100644 --- a/hivemind_core/service.py +++ b/hivemind_core/service.py @@ -126,6 +126,11 @@ def run(self): except: LOG.exception(f"Failed to load plugin '{plug_name}'") + if not protos: + LOG.error("No network protocols were loaded. Exiting service.") + self._status.set_stopping() + return + for network_protocol in protos: create_daemon(network_protocol.run)