summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora-tal <github@talsma.ca>2014-04-03 13:48:49 -0700
committera-tal <github@talsma.ca>2014-04-03 13:48:49 -0700
commite97453e9e060964a6cb4a67fe573bef91054bf03 (patch)
treedaf383b598b7c87effb531ab083d56b331ce1c7f
parentfcf4ad9b744f845b9c88f63c735ff686f24381e2 (diff)
downloadpexpect-e97453e9e060964a6cb4a67fe573bef91054bf03.tar.gz
removes excepted raise
-rw-r--r--pexpect/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py
index 139a6a9..c089f5c 100644
--- a/pexpect/__init__.py
+++ b/pexpect/__init__.py
@@ -704,8 +704,6 @@ class spawn(object):
fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY)
if fd >= 0:
os.close(fd)
- raise ExceptionPexpect('Failed to disconnect from ' +
- 'controlling tty. It is still possible to open /dev/tty.')
# which exception, shouldnt' we catch explicitly .. ?
except:
# Good! We are disconnected from a controlling tty.