summaryrefslogtreecommitdiffhomepage
path: root/demo.py
diff options
context:
space:
mode:
Diffstat (limited to 'demo.py')
-rwxr-xr-xdemo.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/demo.py b/demo.py
index d0dda7f4..2f0242b5 100755
--- a/demo.py
+++ b/demo.py
@@ -114,8 +114,11 @@ try:
try:
keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))
except IOError:
- print '*** Unable to open host keys file'
- keys = {}
+ try:
+ keys = paramiko.util.load_host_keys(os.path.expanduser('~/ssh/known_hosts'))
+ except IOError:
+ print '*** Unable to open host keys file'
+ keys = {}
key = t.get_remote_server_key()
if not keys.has_key(hostname):