summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)