1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

instrument/daq: Fix error message

This commit is contained in:
Marc Bonnici 2019-12-05 10:13:29 +00:00 committed by setrofim
parent 2bf4d8a433
commit 2a934288eb

View File

@ -64,7 +64,7 @@ class DaqInstrument(Instrument):
devices = self.daq_client.list_devices()
if device_id not in devices:
msg = 'Device "{}" is not found on the DAQ server. Available devices are: "{}"'
raise ValueError(msg.format(device_id, ', '.join(result.data)))
raise ValueError(msg.format(device_id, ', '.join(devices)))
except Exception as e:
raise HostError('Problem querying DAQ server: {}'.format(e))