diff --git a/spinnman/transceiver/base_transceiver.py b/spinnman/transceiver/base_transceiver.py index 4a53d9df9..ee6334feb 100644 --- a/spinnman/transceiver/base_transceiver.py +++ b/spinnman/transceiver/base_transceiver.py @@ -301,7 +301,7 @@ def _check_connection( @overrides(AbstractTransceiver.send_sdp_message) def send_sdp_message(self, message, connection=None): if connection is None: - self._scamp_connections[random.randint( + sconnection_to_use = self._scamp_connections[random.randint( 0, len(self._scamp_connections) - 1)] else: connection_to_use = connection