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

View File

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