From 5c75d2a0f2ac5b7bfe9cabdd57445f7a59ef3d59 Mon Sep 17 00:00:00 2001 From: WillB97 Date: Wed, 6 Aug 2025 08:50:50 +0100 Subject: [PATCH] Catch accessing boards before wait start --- sbot/internal/board_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbot/internal/board_manager.py b/sbot/internal/board_manager.py index 0141f0e..06db22f 100644 --- a/sbot/internal/board_manager.py +++ b/sbot/internal/board_manager.py @@ -417,6 +417,9 @@ def find_output(self, identifier: str, idx: int) -> OutputIdentifier: :raises KeyError: If no board with the given identifier is registered. """ assert idx >= 0, "Output identifiers must be positive" + assert self.loaded, \ + "Boards cannot be accessed before they are loaded. Run utils.load_boards() first." + try: return self.outputs[identifier][idx] except IndexError: