Skip to content

Commit

Permalink
error hanling
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 7, 2025
1 parent b65fe26 commit 8a6034f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hivemind_core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8a6034f

Please sign in to comment.