non-functional spaces added

This commit is contained in:
Nicolas 2025-02-20 17:06:48 +01:00
parent db3bf0d7de
commit 258e9e858f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class BusTerminal():
def select(cls, bus_coupler: 'BusCoupler', terminal_number: int = 0):
terminal_list = [bt for bt in bus_coupler.bus_terminals if isinstance(bt, cls)]
assert terminal_list, f'No instance of {cls.__name__} configured at this BusCoupler'
assert 0 <= terminal_number < len(terminal_list), f'Out of range, select in range: 0..{len(terminal_list)-1}'
assert 0 <= terminal_number < len(terminal_list), f'Out of range, select in range: 0..{len(terminal_list) - 1}'
return terminal_list[terminal_number]