Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sbot/internal/board_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading