diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2015-03-05 09:54:41 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-03-05 10:10:33 -0800 |
commit | b0a5ca8e3747a34082895bbd170a617f76ebe7e5 (patch) | |
tree | 316df20fa270b60164ceb88f36ad393f2a8c293c /paramiko/ssh_exception.py | |
parent | bb7acdc81f8c318fe844e3c61d0ee03d03a70bcd (diff) | |
download | paramiko-b0a5ca8e3747a34082895bbd170a617f76ebe7e5.tar.gz |
Rename new exception class to be less generic
Re #22
Diffstat (limited to 'paramiko/ssh_exception.py')
-rw-r--r-- | paramiko/ssh_exception.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 7e6f2568..169dad81 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -133,7 +133,7 @@ class ProxyCommandFailure (SSHException): self.args = (command, error, ) -class ConnectionError(socket.error): +class NoValidConnectionsError(socket.error): """ High-level socket error wrapping 1+ actual socket.error objects. @@ -155,7 +155,7 @@ class ConnectionError(socket.error): body = ', '.join([x[0] for x in addrs[:-1]]) tail = addrs[-1][0] msg = "Unable to connect to port {0} at {1} or {2}" - super(ConnectionError, self).__init__( + super(NoValidConnectionsError, self).__init__( msg.format(addrs[0][1], body, tail) ) self.errors = errors |