diff --git a/demos/demo.py b/demos/demo.py index e5efc94..8b496d8 100755 --- a/demos/demo.py +++ b/demos/demo.py @@ -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) diff --git a/demos/demo_server.py b/demos/demo_server.py index b1e66c3..345a12f 100644 --- a/demos/demo_server.py +++ b/demos/demo_server.py @@ -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)