Skip to content

Commit 5c75d2a

Browse files
committed
Catch accessing boards before wait start
1 parent 0335fc2 commit 5c75d2a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sbot/internal/board_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ def find_output(self, identifier: str, idx: int) -> OutputIdentifier:
417417
:raises KeyError: If no board with the given identifier is registered.
418418
"""
419419
assert idx >= 0, "Output identifiers must be positive"
420+
assert self.loaded, \
421+
"Boards cannot be accessed before they are loaded. Run utils.load_boards() first."
422+
420423
try:
421424
return self.outputs[identifier][idx]
422425
except IndexError:

0 commit comments

Comments
 (0)