From dedf747fe2006db41e649754ffe1746c60943a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Wed, 17 Jan 2024 12:51:44 +0100 Subject: [PATCH] Fix incorrect exception message --- nucypher/network/nodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucypher/network/nodes.py b/nucypher/network/nodes.py index 1bce81729..59004b555 100644 --- a/nucypher/network/nodes.py +++ b/nucypher/network/nodes.py @@ -662,7 +662,9 @@ class Learner: self.log.info(f"Learned about enough nodes after {rounds_undertaken} rounds.") return True if not self._learning_task.running: - raise RuntimeError("Learning loop is not running. Start it with start_learning().") + raise RuntimeError( + "Learning loop is not running. Start it with start_learning_loop()." + ) elif not reactor.running and not learn_on_this_thread: raise RuntimeError( f"The reactor isn't running, but you're trying to use it for discovery. You need to start the Reactor in order to use {self} this way.")