Skip to content

Commit 13e4d09

Browse files
author
Hussein Kadiri
committed
correcting syntax errors
1 parent 9f20c10 commit 13e4d09

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
@@ -26,7 +26,7 @@
2626
monkey.patch_all()
2727
import logging
2828
import paramiko
29-
from paramiko import ssh_exception.ChannelException as channel_exception
29+
from paramiko.ssh_exception import ChannelException as channel_exception
3030
import os
3131
from socket import gaierror as sock_gaierror, error as sock_error
3232
from .exceptions import UnknownHostException, AuthenticationException, \
@@ -139,7 +139,7 @@ def _connect_tunnel(self):
139139
proxy_channel = self.proxy_client.get_transport().\
140140
open_channel('direct-tcpip', (self.host, self.port,),
141141
('127.0.0.1', 0))
142-
return self._connect(self.client, self.host, self.port, sock=proxy_channel)
142+
return self._connect(self.client, self.host, self.port, sock=proxy_channel)
143143
except channel_exception, ex:
144144
error_type = ex.args[1] if len(ex.args) > 1 else ex.args[0]
145145
raise ConnectionErrorException("Error connecting to host '%s:%s' - %s",

0 commit comments

Comments
 (0)