diff --git a/clive/__private/core/world.py b/clive/__private/core/world.py index 36919d8957234b4573c7dd301b05d7f37442d930..d154210efe45b9d9a6cff5763cddeac974b45a21 100644 --- a/clive/__private/core/world.py +++ b/clive/__private/core/world.py @@ -83,8 +83,8 @@ class World: @property def node(self) -> Node: """Node shouldn't be used for direct API calls in CLI/TUI. Instead, use commands which also handle errors.""" - message = "Node is not available. It requires profile to be loaded. Is the profile available?" - assert self._node is not None, message + if self._node is None: + raise ProfileNotLoadedError return self._node @property