Permalink
Browse files

Update connect.py

  • Loading branch information...
1 parent 7072d16 commit 3176156639bc153e7f95ff470087933a22b6402f @ibuler ibuler committed Jun 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 connect.py
View
@@ -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.')

0 comments on commit 3176156

Please sign in to comment.