forked from M-Labs/artiq
lda driver: add error message when no device found
This commit is contained in:
parent
f9d878119a
commit
df232f5405
|
@ -110,7 +110,7 @@ class Lda:
|
|||
self._product_ids[self.product],
|
||||
self.serial)
|
||||
if not self._dev:
|
||||
raise IOError
|
||||
raise IOError("Device not found")
|
||||
|
||||
def close(self):
|
||||
"""Close the device."""
|
||||
|
|
Loading…
Reference in New Issue