Skip to content

Commit

Permalink
Update connect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Jun 3, 2016
1 parent 7072d16 commit 3176156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_connection(self):
allow_agent=False,
look_for_keys=False)

except paramiko.ssh_exception.AuthenticationException, paramiko.ssh_exception.SSHException:
except (paramiko.ssh_exception.AuthenticationException, paramiko.ssh_exception.SSHException):
raise ServerError('认证失败 Authentication Error.')
except socket.error:
raise ServerError('端口可能不对 Connect SSH Socket Port Error, Please Correct it.')
Expand Down

0 comments on commit 3176156

Please sign in to comment.