Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Aug 31, 2016
1 parent ec32daf commit eacea1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pssh/ssh_client.py
Expand Up @@ -21,7 +21,7 @@
import sys
from gevent import sleep
import paramiko
from paramiko.ssh_exception import ChannelException as channel_exception
from paramiko.ssh_exception import ChannelException
import os
from socket import gaierror as sock_gaierror, error as sock_error
from .exceptions import UnknownHostException, AuthenticationException, \
Expand Down Expand Up @@ -143,7 +143,7 @@ def _connect_tunnel(self):
('127.0.0.1', 0))
sleep(0)
return self._connect(self.client, self.host, self.port, sock=proxy_channel)
except channel_exception, ex:
except ChannelException, ex:
error_type = ex.args[1] if len(ex.args) > 1 else ex.args[0]
raise ConnectionErrorException("Error connecting to host '%s:%s' - %s",
self.host, self.port,
Expand Down

0 comments on commit eacea1e

Please sign in to comment.