Skip to content

Commit

Permalink
if paramiko agent has no keys, it might have no keys attribute. check…
Browse files Browse the repository at this point in the history
… for that
  • Loading branch information
jmathes committed Feb 20, 2013
1 parent 5d92fa5 commit 0e41f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dripbox.py
Expand Up @@ -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"
Expand Down

0 comments on commit 0e41f1b

Please sign in to comment.