From 3176156639bc153e7f95ff470087933a22b6402f Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 3 Jun 2016 10:03:12 +0800 Subject: [PATCH] Update connect.py --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index 5ff7ae268..aa5848888 100755 --- a/connect.py +++ b/connect.py @@ -249,7 +249,7 @@ class Tty(object): 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.')