diff --git a/alarmdecoder/devices.py b/alarmdecoder/devices.py index cb113cc..d2edffe 100644 --- a/alarmdecoder/devices.py +++ b/alarmdecoder/devices.py @@ -665,8 +665,8 @@ class SerialDevice(Device): # all issues with it. 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: self._running = True