From 3018187228a9e851f7cac85cb98dd1c9f65b4c17 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 18 Apr 2024 15:41:06 -0400 Subject: [PATCH] Tweak `current_actor()` failure msg --- tractor/_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tractor/_state.py b/tractor/_state.py index b76e8ac..30346a6 100644 --- a/tractor/_state.py +++ b/tractor/_state.py @@ -66,7 +66,7 @@ def current_actor( err_on_no_runtime and _current_actor is None ): - msg: str = 'No local actor has been initialized yet' + msg: str = 'No local actor has been initialized yet?\n' from ._exceptions import NoRuntime if last := last_actor(): @@ -79,8 +79,8 @@ def current_actor( # this process. else: msg += ( - 'No last actor found?\n' - 'Did you forget to open one of:\n\n' + # 'No last actor found?\n' + '\nDid you forget to call one of,\n' '- `tractor.open_root_actor()`\n' '- `tractor.open_nursery()`\n' )