From 993944017c92a72cdf0d13016f77bc1759ffc0b0 Mon Sep 17 00:00:00 2001 From: KPrasch Date: Thu, 18 Jan 2024 15:24:20 +0100 Subject: [PATCH] Update nucypher/network/nodes.py --- nucypher/network/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher/network/nodes.py b/nucypher/network/nodes.py index 4336c16496..edd8b0a52c 100644 --- a/nucypher/network/nodes.py +++ b/nucypher/network/nodes.py @@ -538,7 +538,7 @@ def select_teacher_nodes(self): if not nodes_we_know_about: self.log.warn("Need some nodes to start learning from.") - return False + raise self.NotEnoughTeachers("Need some nodes to start learning from.") self.teacher_nodes.extend(nodes_we_know_about)