summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-07-23 13:41:16 -0700
committerRobey Pointer <robey@lag.net>2006-07-23 13:41:16 -0700
commit55a52a09cce414b894c17000356367ad1403a189 (patch)
tree50cbe9944397b30a9b453045281e13435e222d6c
parentffcc22e784430acc7f67aa36e0104d8eca5f0c35 (diff)
[project @ robey@lag.net-20060723204116-319c388eacb937d6]
fix SSHException references in demos
-rwxr-xr-xdemos/demo.py4
-rw-r--r--demos/demo_server.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/demo.py b/demos/demo.py
index e5efc948..8b496d8e 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 b1e66c39..345a12fd 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)