From df232f54057338ab237e64085060d4d65efdb645 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Tue, 7 Jul 2015 15:18:28 +0200 Subject: [PATCH] lda driver: add error message when no device found --- artiq/devices/lda/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/devices/lda/driver.py b/artiq/devices/lda/driver.py index c198f04c7..d84605201 100644 --- a/artiq/devices/lda/driver.py +++ b/artiq/devices/lda/driver.py @@ -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."""