mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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
Block a user