Browse Source

Added missing potential exception when opening a SerialDevice.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
f6113b7fa9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      alarmdecoder/devices.py

+ 2
- 2
alarmdecoder/devices.py View File

@@ -665,8 +665,8 @@ class SerialDevice(Device):
# all issues with it. # all issues with it.
self._device.baudrate = baudrate self._device.baudrate = baudrate


except (serial.SerialException, ValueError), err:
raise NoDeviceError('Error opening device on port {0}.'.format(self._port), err)
except (serial.SerialException, ValueError, OSError), err:
raise NoDeviceError('Error opening device on {0}.'.format(self._port), err)


else: else:
self._running = True self._running = True


Loading…
Cancel
Save