From 7e65264e1579e84265dbd7ff23ae4911c7f59505 Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Fri, 31 May 2013 15:15:41 -0700 Subject: [PATCH] Oops, forgot the exception. --- pyad2usb/devices.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py index d3e0bc0..ecfba05 100644 --- a/pyad2usb/devices.py +++ b/pyad2usb/devices.py @@ -207,6 +207,7 @@ class USBDevice(Device): """ def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True @@ -392,6 +393,7 @@ class SerialDevice(Device): def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True @@ -550,6 +552,7 @@ class SocketDevice(Device): """ def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True