Permalink
Browse files

Merge pull request #15 from jmathes/master

Fix case where paramiko doesn't find any ssh keys
  • Loading branch information...
2 parents 5d92fa5 + 0e41f1b commit 7da57d0fc5bb0c2c493a014fab2ceec6dced5fad @epall committed Feb 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 dripbox.py
View
@@ -109,7 +109,7 @@ def launch(username_p, host_p, remote_path, port_p=None):
def get_ssh_key():
agent = paramiko.Agent()
- if agent.keys:
+ if hasattr(agent, 'keys') and agent.keys:
# TODO: support having more than one key loaded
if len(agent.keys) > 1:
print ("You have more than one key in your SSH Agent"

0 comments on commit 7da57d0

Please sign in to comment.