summaryrefslogtreecommitdiff
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
parent1cfa05e78b4aecdead9d0124cf4dfbe6bfde7893 (diff)
downloadpyserial-git-4b20ec6498f586cbbebe9f4feb0c6f3724ede773.tar.gz
fix [Bug 3540332], base class of port not open exception changed to SerialException
-rw-r--r--pyserial/CHANGES.txt4
-rw-r--r--pyserial/README.txt2
-rw-r--r--pyserial/serial/serialutil.py4
3 files changed, 7 insertions, 3 deletions
diff --git a/pyserial/CHANGES.txt b/pyserial/CHANGES.txt
index dfe95be..8a8e224 100644
--- a/pyserial/CHANGES.txt
+++ b/pyserial/CHANGES.txt
@@ -442,6 +442,10 @@ Version 2.7 2012-nn-nn
- Posix: rename flowControl to setXON to match name on Win32, add
flowControlOut function
+Bugfixes:
+
+- [Bug 3540332] SerialException not returned
+
Bugfixes (posix):
- [Patch 3462364] Fix: NameError: global name 'base' is not defined
diff --git a/pyserial/README.txt b/pyserial/README.txt
index d6317e1..cf19511 100644
--- a/pyserial/README.txt
+++ b/pyserial/README.txt
@@ -14,7 +14,7 @@ automatically selects the appropriate backend.
- SVN repository: http://sourceforge.net/svn/?group_id=46487
- Download Page: http://sourceforge.net/project/showfiles.php?group_id=46487
-BSD license, (C) 2001-2011 Chris Liechti <cliechti@gmx.net>
+BSD license, (C) 2001-2012 Chris Liechti <cliechti@gmx.net>
Documentation
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):