summaryrefslogtreecommitdiff
path: root/pyserial/serial/serialutil.py
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2012-08-16 01:04:44 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2012-08-16 01:04:44 +0000
commit4b20ec6498f586cbbebe9f4feb0c6f3724ede773 (patch)
treeb9f4dd8b03a0bedad4bb60836b3401b4c5eae025 /pyserial/serial/serialutil.py
parent1cfa05e78b4aecdead9d0124cf4dfbe6bfde7893 (diff)
downloadpyserial-git-4b20ec6498f586cbbebe9f4feb0c6f3724ede773.tar.gz
fix [Bug 3540332], base class of port not open exception changed to SerialException
Diffstat (limited to 'pyserial/serial/serialutil.py')
-rw-r--r--pyserial/serial/serialutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyserial/serial/serialutil.py b/pyserial/serial/serialutil.py
index c372280..a8f0716 100644
--- a/pyserial/serial/serialutil.py
+++ b/pyserial/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):