fix SSHException references in demos
This commit is contained in:
Robey Pointer 2006-07-23 13:41:16 -07:00
parent ffcc22e784
commit 55a52a09cc
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ def agent_auth(transport, username):
transport.auth_publickey(username, key)
print '... success!'
return
except SSHException:
except paramiko.SSHException:
print '... nope.'
@ -118,7 +118,7 @@ try:
t = paramiko.Transport(sock)
try:
t.start_client()
except SSHException:
except paramiko.SSHException:
print '*** SSH negotiation failed.'
sys.exit(1)

View File

@ -109,7 +109,7 @@ try:
server = Server()
try:
t.start_server(server=server)
except SSHException, x:
except paramiko.SSHException, x:
print '*** SSH negotiation failed.'
sys.exit(1)