Browse Source

Caught another rare device exception.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
13bee0c172
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pyad2usb/devices.py

+ 1
- 1
pyad2usb/devices.py View File

@@ -268,7 +268,7 @@ class SerialDevice(Device):
if timeout > 0 and time.time() - start_time > timeout: if timeout > 0 and time.time() - start_time > timeout:
raise util.TimeoutError('Timeout while waiting for line terminator.') raise util.TimeoutError('Timeout while waiting for line terminator.')


except serial.SerialException, err:
except (OSError, serial.SerialException), err:
raise util.CommError('Error reading from AD2SERIAL device: {0}'.format(str(err))) raise util.CommError('Error reading from AD2SERIAL device: {0}'.format(str(err)))
else: else:
if got_line: if got_line:


Loading…
Cancel
Save