From 2f3a8590a35cea5c84ad9fc4610097b8e12f6100 Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Tue, 28 May 2013 15:36:16 -0700 Subject: [PATCH] Fixed exception from SerialDevice when writing --- pyad2usb/devices.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py index 7c56bd8..015240f 100644 --- a/pyad2usb/devices.py +++ b/pyad2usb/devices.py @@ -358,6 +358,8 @@ class SerialDevice(Device): self._device.write(data) except serial.SerialTimeoutException, err: pass + except serial.SerialException, err: + raise util.CommError('Error writing to serial device.') else: self.on_write(data)