Skip to content

Commit eacea1e

Browse files
author
Dan
committed
Cleanup
1 parent ec32daf commit eacea1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pssh/ssh_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import sys
2222
from gevent import sleep
2323
import paramiko
24-
from paramiko.ssh_exception import ChannelException as channel_exception
24+
from paramiko.ssh_exception import ChannelException
2525
import os
2626
from socket import gaierror as sock_gaierror, error as sock_error
2727
from .exceptions import UnknownHostException, AuthenticationException, \
@@ -143,7 +143,7 @@ def _connect_tunnel(self):
143143
('127.0.0.1', 0))
144144
sleep(0)
145145
return self._connect(self.client, self.host, self.port, sock=proxy_channel)
146-
except channel_exception, ex:
146+
except ChannelException, ex:
147147
error_type = ex.args[1] if len(ex.args) > 1 else ex.args[0]
148148
raise ConnectionErrorException("Error connecting to host '%s:%s' - %s",
149149
self.host, self.port,

0 commit comments

Comments
 (0)