diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2012-08-16 01:04:44 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2012-08-16 01:04:44 +0000 |
commit | 2127db6f279f1ab0b7e4ddc2df89f03269d7de3f (patch) | |
tree | ae3c730747313198a7794dfa9295107e670d0147 /serial | |
parent | e1d403b5c238c328e75fedcedb74f17df4b504a9 (diff) | |
download | pyserial-2127db6f279f1ab0b7e4ddc2df89f03269d7de3f.tar.gz |
fix [Bug 3540332], base class of port not open exception changed to SerialException
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@454 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'serial')
-rw-r--r-- | serial/serialutil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/serialutil.py b/serial/serialutil.py index c372280..a8f0716 100644 --- a/serial/serialutil.py +++ b/serial/serialutil.py @@ -84,8 +84,8 @@ class SerialTimeoutException(SerialException): """Write timeouts give an exception""" -writeTimeoutError = SerialTimeoutException("Write timeout") -portNotOpenError = ValueError('Attempting to use a port that is not open') +writeTimeoutError = SerialTimeoutException('Write timeout') +portNotOpenError = SerialException('Attempting to use a port that is not open') class FileLike(object): |